diff options
author | Peng Wu <alexepico@gmail.com> | 2014-12-08 15:41:43 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-12-08 15:41:43 +0800 |
commit | 7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4 (patch) | |
tree | 25539caf6b4bb53c59f76fb2ad242daa4aace095 /src/PYPPinyinEngine.cc | |
parent | 1f68a74635ab683263e275ba63b77f4007ba6634 (diff) | |
download | ibus-libpinyin-7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4.tar.gz ibus-libpinyin-7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4.tar.xz ibus-libpinyin-7e0498f497d1bbafa52933b1ad3d0ce0c54eaab4.zip |
refine code style
Diffstat (limited to 'src/PYPPinyinEngine.cc')
-rw-r--r-- | src/PYPPinyinEngine.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |