summaryrefslogtreecommitdiffstats
path: root/src/FallbackEditor.h
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-05-30 21:04:22 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-05-30 21:17:53 +0800
commit9211cbcd3d580cf96a2bea7d8dd3ec8beefca9a7 (patch)
treed60c43f1a360c0a285715c676dc49c4d895c8ebb /src/FallbackEditor.h
parent44f4960fb84fbb3643d523932bc8612bff5ff18c (diff)
downloadibus-libpinyin-9211cbcd3d580cf96a2bea7d8dd3ec8beefca9a7.tar.gz
ibus-libpinyin-9211cbcd3d580cf96a2bea7d8dd3ec8beefca9a7.tar.xz
ibus-libpinyin-9211cbcd3d580cf96a2bea7d8dd3ec8beefca9a7.zip
Refine coding style
Diffstat (limited to 'src/FallbackEditor.h')
-rw-r--r--src/FallbackEditor.h17
1 files changed, 11 insertions, 6 deletions
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);
}