summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-11-28 10:24:10 +0800
committerPeng Wu <alexepico@gmail.com>2012-11-28 10:24:10 +0800
commitc6aac3d5d953a2e68daca7e2abf8f9bd58145e74 (patch)
tree32709e31986ee769add3bc07ecd0296c93f88d39 /src
parent00a2fea0ee7695ee5fac6f06811d89a90a7d718c (diff)
downloadlibpinyin-c6aac3d5d953a2e68daca7e2abf8f9bd58145e74.tar.gz
libpinyin-c6aac3d5d953a2e68daca7e2abf8f9bd58145e74.tar.xz
libpinyin-c6aac3d5d953a2e68daca7e2abf8f9bd58145e74.zip
add const modifiers
Diffstat (limited to 'src')
-rw-r--r--src/storage/phrase_large_table2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
index 74e7b3c..368d03d 100644
--- a/src/storage/phrase_large_table2.h
+++ b/src/storage/phrase_large_table2.h
@@ -117,7 +117,7 @@ public:
};
-static inline int reduce_tokens(PhraseTokens tokens,
+static inline int reduce_tokens(const PhraseTokens tokens,
GArray * tokenarray) {
int num = 0;
g_array_set_size(tokenarray, 0);
@@ -139,7 +139,7 @@ static inline int reduce_tokens(PhraseTokens tokens,
}
/* for compatibility. */
-static inline int get_first_token(PhraseTokens tokens,
+static inline int get_first_token(const PhraseTokens tokens,
/* out */ phrase_token_t & token){
token = null_token;