summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_large_table2.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-21 14:04:28 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-25 13:28:21 +0800
commit993983933976cb2a864eb155b952deded9e20784 (patch)
treed4be057624b38f04455322be2c6a07451fabd72f /src/storage/phrase_large_table2.cpp
parentfb29787830eb012a92d5c4c0bde18a4228ee4a83 (diff)
downloadlibpinyin-993983933976cb2a864eb155b952deded9e20784.tar.gz
libpinyin-993983933976cb2a864eb155b952deded9e20784.tar.xz
libpinyin-993983933976cb2a864eb155b952deded9e20784.zip
fixes compile
Diffstat (limited to 'src/storage/phrase_large_table2.cpp')
-rw-r--r--src/storage/phrase_large_table2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/phrase_large_table2.cpp b/src/storage/phrase_large_table2.cpp
index 5eb1c18..cccb0c8 100644
--- a/src/storage/phrase_large_table2.cpp
+++ b/src/storage/phrase_large_table2.cpp
@@ -41,7 +41,7 @@ public:
/* search method */
int search(int phrase_length, /* in */ ucs4_t phrase[],
- /* out */ PhraseTokens tokens);
+ /* out */ PhraseTokens tokens) const;
/* add_index/remove_index method */
int add_index(int phrase_length, /* in */ ucs4_t phrase[],
@@ -59,7 +59,7 @@ public:
bool store(MemoryChunk * new_chunk, table_offset_t offset, table_offset_t & end);
/* search method */
- int search(/* in */ ucs4_t phrase[], /* out */ PhraseTokens tokens);
+ int search(/* in */ ucs4_t phrase[], /* out */ PhraseTokens tokens) const;
/* add_index/remove_index method */
int add_index(/* in */ ucs4_t phrase[], /* in */ phrase_token_t token);