From 9211cbcd3d580cf96a2bea7d8dd3ec8beefca9a7 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Sun, 30 May 2010 21:04:22 +0800 Subject: Refine coding style --- src/FallbackEditor.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/FallbackEditor.h') diff --git a/src/FallbackEditor.h b/src/FallbackEditor.h index 9994f8c..3e45c30 100644 --- a/src/FallbackEditor.h +++ b/src/FallbackEditor.h @@ -32,33 +32,38 @@ public: : Editor (props, config), m_quote (TRUE), m_double_quote (TRUE), - m_prev_committed_char (0) {} + m_prev_committed_char (0) { } gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers); void reset (void); - void setPrevCommittedChar (gunichar ch) { + void setPrevCommittedChar (gunichar ch) + { m_prev_committed_char = ch; } private: - void commit (gchar ch) { + void commit (gchar ch) + { gchar str[2] = {ch, 0}; StaticText text (str); commitText (text); } - void commit (gunichar ch) { + void commit (gunichar ch) + { Text text (ch); commitText (text); } - void commit (const gchar *str) { + void commit (const gchar *str) + { StaticText text (str); commitText (text); } - void commit (const String &str) { + void commit (const String &str) + { commit ((const gchar *)str); } -- cgit