diff options
author | Peng Wu <alexepico@gmail.com> | 2012-05-17 14:26:35 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-05-17 14:29:52 +0800 |
commit | 3746f9d87796057a076783fbbf33b54ad861f8cf (patch) | |
tree | 40bf5fd83ed74ac095981d1bd38496edddba88d4 | |
parent | e864fe93329e03ab02e157d44df23d4cd949fecf (diff) | |
download | libpinyin-3746f9d87796057a076783fbbf33b54ad861f8cf.tar.gz libpinyin-3746f9d87796057a076783fbbf33b54ad861f8cf.tar.xz libpinyin-3746f9d87796057a076783fbbf33b54ad861f8cf.zip |
fixes typos
-rw-r--r-- | src/storage/phrase_index.h | 1 | ||||
-rw-r--r-- | tests/lookup/test_phrase_lookup.cpp | 2 | ||||
-rw-r--r-- | tests/lookup/test_pinyin_lookup.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h index 056e8f3..1144ce9 100644 --- a/src/storage/phrase_index.h +++ b/src/storage/phrase_index.h @@ -686,6 +686,7 @@ public: g_array_set_size(range, 0); } } + return true; } /** diff --git a/tests/lookup/test_phrase_lookup.cpp b/tests/lookup/test_phrase_lookup.cpp index 9015472..b529f75 100644 --- a/tests/lookup/test_phrase_lookup.cpp +++ b/tests/lookup/test_phrase_lookup.cpp @@ -81,7 +81,7 @@ int main(int argc, char * argv[]){ const char * bin_file = pinyin_phrase_files[i]; if (NULL == bin_file) continue; - gchar * filename = g_build_filename("..", "..", "data", bin_file,NULL); + gchar * filename = g_build_filename("..", "..", "data", bin_file, NULL); chunk = new MemoryChunk; chunk->load(filename); phrase_index.load(i, chunk); diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp index ab67e0d..c232134 100644 --- a/tests/lookup/test_pinyin_lookup.cpp +++ b/tests/lookup/test_pinyin_lookup.cpp @@ -19,7 +19,7 @@ int main( int argc, char * argv[]){ const char * bin_file = pinyin_phrase_files[i]; if (NULL == bin_file) continue; - gchar * filename = g_build_filename("..", "..", "data", bin_file,NULL); + gchar * filename = g_build_filename("..", "..", "data", bin_file, NULL); chunk = new MemoryChunk; chunk->load(filename); phrase_index.load(i, chunk); |