summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-12-08 15:41:43 +0800
committerPeng Wu <alexepico@gmail.com>2014-12-08 15:41:43 +0800
commit7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4 (patch)
tree25539caf6b4bb53c59f76fb2ad242daa4aace095
parent1f68a74635ab683263e275ba63b77f4007ba6634 (diff)
downloadibus-libpinyin-7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4.tar.gz
ibus-libpinyin-7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4.tar.xz
ibus-libpinyin-7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4.zip
refine code style
-rw-r--r--src/PYPBopomofoEngine.cc6
-rw-r--r--src/PYPPinyinEngine.cc6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/PYPBopomofoEngine.cc b/src/PYPBopomofoEngine.cc
index 0dc8eb6..6c5caf2 100644
--- a/src/PYPBopomofoEngine.cc
+++ b/src/PYPBopomofoEngine.cc
@@ -65,7 +65,7 @@ BopomofoEngine::processAccelKeyEvent (guint keyval, guint keycode,
guint modifiers)
{
std::string accel;
- pinyin_accelerator_name(keyval, modifiers, accel);
+ pinyin_accelerator_name (keyval, modifiers, accel);
/* Safe Guard for empty key. */
if ("" == accel)
@@ -78,7 +78,7 @@ BopomofoEngine::processAccelKeyEvent (guint keyval, guint keycode,
* and no other key event between the press and release key event */
gboolean triggered = FALSE;
- if (m_prev_pressed_key == keyval){
+ if (m_prev_pressed_key == keyval) {
if (PinyinConfig::instance ().mainSwitch () == accel) {
triggered = TRUE;
}
@@ -93,7 +93,7 @@ BopomofoEngine::processAccelKeyEvent (guint keyval, guint keycode,
if (m_input_mode == MODE_INIT &&
m_editors[MODE_INIT]->text ().empty ()) {
- /* If it is in init mode, and no any previous input text,
+ /* If it is in init mode, and no any previous input text,
* we will let client applications to handle release key event */
return FALSE;
} else {
diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc
index 3d6cba4..6bb4285 100644
--- a/src/PYPPinyinEngine.cc
+++ b/src/PYPPinyinEngine.cc
@@ -101,7 +101,7 @@ PinyinEngine::processAccelKeyEvent (guint keyval, guint keycode,
guint modifiers)
{
std::string accel;
- pinyin_accelerator_name(keyval, modifiers, accel);
+ pinyin_accelerator_name (keyval, modifiers, accel);
/* Safe Guard for empty key. */
if ("" == accel)
@@ -114,7 +114,7 @@ PinyinEngine::processAccelKeyEvent (guint keyval, guint keycode,
* and no other key event between the press and release key event */
gboolean triggered = FALSE;
- if (m_prev_pressed_key == keyval){
+ if (m_prev_pressed_key == keyval) {
if (PinyinConfig::instance ().mainSwitch () == accel) {
triggered = TRUE;
}
@@ -129,7 +129,7 @@ PinyinEngine::processAccelKeyEvent (guint keyval, guint keycode,
if (m_input_mode == MODE_INIT &&
m_editors[MODE_INIT]->text ().empty ()) {
- /* If it is in init mode, and no any previous input text,
+ /* If it is in init mode, and no any previous input text,
* we will let client applications to handle release key event */
return FALSE;
} else {