summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-22 19:12:53 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-22 19:12:53 +0800
commitcda6da120aff1d3e228a9e99f0435ce862e05e12 (patch)
treeaeeaaac6196ae8be09792178b21cad1cf5ae4982 /src/storage/phrase_index.h
parent806ee677ed908de317f0bbf377279d2083dce731 (diff)
downloadlibpinyin-cda6da120aff1d3e228a9e99f0435ce862e05e12.tar.gz
libpinyin-cda6da120aff1d3e228a9e99f0435ce862e05e12.tar.xz
libpinyin-cda6da120aff1d3e228a9e99f0435ce862e05e12.zip
fixes phrase index logger
Diffstat (limited to 'src/storage/phrase_index.h')
-rw-r--r--src/storage/phrase_index.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 17d81c4..e1d4de6 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -137,14 +137,14 @@ public:
void append_pronunciation(PinyinKey * pinyin, guint32 freq);
void remove_nth_pronunciation(size_t index);
- bool operator == (PhraseItem & rhs){
+ bool operator == (const PhraseItem & rhs) const{
if (m_chunk.size() != rhs.m_chunk.size())
return false;
return memcmp(m_chunk.begin(), rhs.m_chunk.begin(),
m_chunk.size()) == 0;
}
- bool operator != (PhraseItem & rhs){
+ bool operator != (const PhraseItem & rhs) const{
return ! (*this == rhs);
}
};