fixes typos
authorPeng Wu <alexepico@gmail.com>
Thu, 17 May 2012 06:26:35 +0000 (14:26 +0800)
committerPeng Wu <alexepico@gmail.com>
Thu, 17 May 2012 06:29:52 +0000 (14:29 +0800)
src/storage/phrase_index.h
tests/lookup/test_phrase_lookup.cpp
tests/lookup/test_pinyin_lookup.cpp

index 056e8f38957889bf05ae7a00ee5a74fb9211b483..1144ce91a4c662d14adfcaea7edc434757d1d6be 100644 (file)
@@ -686,6 +686,7 @@ public:
                 g_array_set_size(range, 0);
             }
         }
+        return true;
     }
 
     /**
index 9015472d4841aaefd97b0e4813a8d6fe7bb90079..b529f7582383f01753f0cabf7392ea6f55bfc6b8 100644 (file)
@@ -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);
index ab67e0dad0bf03cb5fe1ba1beb6a0b3e5e516f90..c232134356e4897e72a23c5760896da04996b86b 100644 (file)
@@ -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);