diff options
author | Peng Wu <alexepico@gmail.com> | 2014-04-23 16:27:22 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-04-23 16:27:22 +0800 |
commit | f31155bf3ebadac7c4124009e8b571c1778f3692 (patch) | |
tree | edb610db1ecd7f27a7f25e810ee5bd65298559bb | |
parent | 8d553e0c189d65a935fd5169f06b3a2e0380b013 (diff) | |
download | ibus-libpinyin-f31155bf3ebadac7c4124009e8b571c1778f3692.tar.gz ibus-libpinyin-f31155bf3ebadac7c4124009e8b571c1778f3692.tar.xz ibus-libpinyin-f31155bf3ebadac7c4124009e8b571c1778f3692.zip |
format code
-rw-r--r-- | src/PYLibPinyin.cc | 4 | ||||
-rw-r--r-- | src/PYLibPinyin.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc index eb88e16..99b11bd 100644 --- a/src/PYLibPinyin.cc +++ b/src/PYLibPinyin.cc @@ -35,7 +35,7 @@ static LibPinyinBackEnd libpinyin_backend; LibPinyinBackEnd::LibPinyinBackEnd () { m_timeout_id = 0; - m_timer = g_timer_new(); + m_timer = g_timer_new (); m_pinyin_context = NULL; m_chewing_context = NULL; } @@ -64,7 +64,7 @@ LibPinyinBackEnd::initPinyinContext (Config *config) "ibus", "libpinyin", NULL); int retval = g_mkdir_with_parents (userdir, 0700); if (retval) { - g_free(userdir); userdir = NULL; + g_free (userdir); userdir = NULL; } context = pinyin_init (LIBPINYIN_DATADIR, userdir); g_free (userdir); diff --git a/src/PYLibPinyin.h b/src/PYLibPinyin.h index 2400b0e..45b2757 100644 --- a/src/PYLibPinyin.h +++ b/src/PYLibPinyin.h @@ -35,8 +35,8 @@ class Config; class LibPinyinBackEnd{ public: - LibPinyinBackEnd(); - ~LibPinyinBackEnd(); + LibPinyinBackEnd (); + virtual ~LibPinyinBackEnd (); gboolean setPinyinOptions (Config *config); gboolean setChewingOptions (Config *config); @@ -50,8 +50,8 @@ public: void freeChewingInstance (pinyin_instance_t *instance); void modified (void); - gboolean importPinyinDictionary(const char * filename); - gboolean clearPinyinUserData(const char * target); + gboolean importPinyinDictionary (const char * filename); + gboolean clearPinyinUserData (const char * target); /* use static initializer in C++. */ static LibPinyinBackEnd & instance (void) { return *m_instance; } |