summaryrefslogtreecommitdiffstats
path: root/src/storage/facade_chewing_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/facade_chewing_table.h')
-rw-r--r--src/storage/facade_chewing_table.h6
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;