projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a2fea
)
add const modifiers
author
Peng Wu
<alexepico@gmail.com>
Wed, 28 Nov 2012 02:24:10 +0000
(10:24 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Wed, 28 Nov 2012 02:24:10 +0000
(10:24 +0800)
src/storage/phrase_large_table2.h
patch
|
blob
|
history
diff --git
a/src/storage/phrase_large_table2.h
b/src/storage/phrase_large_table2.h
index
74e7b3c
..
368d03d
100644
(file)
--- 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;