summaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-01-22 16:21:34 +0800
committerPeng Wu <alexepico@gmail.com>2017-01-22 16:21:34 +0800
commitec5a41aac76aed88d14bf653c5c33ecc14e55907 (patch)
treec275bb87b8b4c04bf367ef2fe66f1994d4813223 /src/storage
parent07f2e2ed842b500ecd717ce2eff63f08d77a800c (diff)
downloadlibpinyin-ec5a41aac76aed88d14bf653c5c33ecc14e55907.tar.gz
libpinyin-ec5a41aac76aed88d14bf653c5c33ecc14e55907.tar.xz
libpinyin-ec5a41aac76aed88d14bf653c5c33ecc14e55907.zip
add const modifiers
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/phonetic_key_matrix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/phonetic_key_matrix.h b/src/storage/phonetic_key_matrix.h
index ef6d749..62edf73 100644
--- a/src/storage/phonetic_key_matrix.h
+++ b/src/storage/phonetic_key_matrix.h
@@ -58,7 +58,7 @@ public:
return true;
}
- size_t size() {
+ size_t size() const {
return m_table_content->len;
}
@@ -130,7 +130,7 @@ public:
return m_keys.clear_all() && m_key_rests.clear_all();
}
- size_t size() {
+ size_t size() const {
assert(m_keys.size() == m_key_rests.size());
return m_keys.size();
}