From 3746f9d87796057a076783fbbf33b54ad861f8cf Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 17 May 2012 14:26:35 +0800 Subject: fixes typos --- src/storage/phrase_index.h | 1 + tests/lookup/test_phrase_lookup.cpp | 2 +- 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); -- cgit