summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.h
diff options
context:
space:
mode:
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);
}
};