diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-18 11:26:23 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-18 11:26:23 +0800 |
commit | cb827e2511b9557e41acec74a3d6ebcfaed862f8 (patch) | |
tree | 1da7c29c8bef4d3f231b5e996fb967678be25fd8 /src/storage/facade_chewing_table.h | |
parent | 0ee1b6a1b63ae2d55684bd982a95a6a9389f12d2 (diff) | |
download | libpinyin-cb827e2511b9557e41acec74a3d6ebcfaed862f8.tar.gz libpinyin-cb827e2511b9557e41acec74a3d6ebcfaed862f8.tar.xz libpinyin-cb827e2511b9557e41acec74a3d6ebcfaed862f8.zip |
add const modifiers for chewing table
Diffstat (limited to 'src/storage/facade_chewing_table.h')
-rw-r--r-- | src/storage/facade_chewing_table.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/facade_chewing_table.h b/src/storage/facade_chewing_table.h index 572ce04..474311c 100644 --- a/src/storage/facade_chewing_table.h +++ b/src/storage/facade_chewing_table.h @@ -139,7 +139,7 @@ public: * Search the phrase tokens according to the pinyin keys. * */ - int search(int phrase_length, /* in */ ChewingKey keys[], + int search(int phrase_length, /* in */ const ChewingKey keys[], /* out */ PhraseIndexRanges ranges) const { /* clear ranges. */ @@ -171,7 +171,7 @@ public: * Add the phrase token to the user chewing table. * */ - int add_index(int phrase_length, /* in */ ChewingKey keys[], + int add_index(int phrase_length, /* in */ const ChewingKey keys[], /* in */ phrase_token_t token) { if (NULL == m_user_chewing_table) return ERROR_NO_USER_TABLE; @@ -188,7 +188,7 @@ public: * Remove the phrase token from the user chewing table. * */ - int remove_index(int phrase_length, /* in */ ChewingKey keys[], + int remove_index(int phrase_length, /* in */ const ChewingKey keys[], /* in */ phrase_token_t token) { if (NULL == m_user_chewing_table) return ERROR_NO_USER_TABLE; |