diff options
author | Peng Wu <alexepico@gmail.com> | 2014-07-15 11:14:05 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2014-07-15 11:14:05 +0800 |
commit | d44a0cbedb562c2e1926c765cdd4735be68db9b6 (patch) | |
tree | 8716d4438cf27a19db5da9f430603d9ecb79d9ca | |
parent | 10969d4f8abf0559c2748d3f1a518c9e487f0e86 (diff) | |
download | ibus-libpinyin-d44a0cbedb562c2e1926c765cdd4735be68db9b6.tar.gz ibus-libpinyin-d44a0cbedb562c2e1926c765cdd4735be68db9b6.tar.xz ibus-libpinyin-d44a0cbedb562c2e1926c765cdd4735be68db9b6.zip |
use macro USER_DICTIONARY
-rw-r--r-- | src/PYLibPinyin.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc index d34956f..23970a5 100644 --- a/src/PYLibPinyin.cc +++ b/src/PYLibPinyin.cc @@ -214,7 +214,7 @@ LibPinyinBackEnd::importPinyinDictionary (const char * filename) return FALSE; import_iterator_t * iter = pinyin_begin_add_phrases - (m_pinyin_context, 15); + (m_pinyin_context, USER_DICTIONARY); if (NULL == iter) return FALSE; @@ -258,7 +258,7 @@ LibPinyinBackEnd::clearPinyinUserData (const char * target) pinyin_mask_out (m_pinyin_context, 0x0, 0x0); else if (0 == strcmp ("user", target)) pinyin_mask_out (m_pinyin_context, PHRASE_INDEX_LIBRARY_MASK, - PHRASE_INDEX_MAKE_TOKEN (15, null_token)); + PHRASE_INDEX_MAKE_TOKEN (USER_DICTIONARY, null_token)); else g_warning ("unknown clear target: %s.\n", target); |