diff options
author | Peng Wu <alexepico@gmail.com> | 2016-05-11 16:38:14 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-05-11 16:38:14 +0800 |
commit | 5b487bd6d66f9a8f43260a9bec978ea8cf692995 (patch) | |
tree | 49dfb695ee6af317d81aa34f3835cc55a4e6ea0a /tests/storage/test_matrix.cpp | |
parent | 0d1aaf9cb0f4b53114422618cb61510560f4611d (diff) | |
download | libpinyin-5b487bd6d66f9a8f43260a9bec978ea8cf692995.tar.gz libpinyin-5b487bd6d66f9a8f43260a9bec978ea8cf692995.tar.xz libpinyin-5b487bd6d66f9a8f43260a9bec978ea8cf692995.zip |
fixes compile
Diffstat (limited to 'tests/storage/test_matrix.cpp')
-rw-r--r-- | tests/storage/test_matrix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/storage/test_matrix.cpp b/tests/storage/test_matrix.cpp index ba9b3e0..fd965b8 100644 --- a/tests/storage/test_matrix.cpp +++ b/tests/storage/test_matrix.cpp @@ -23,6 +23,7 @@ #include <stdlib.h> #include "pinyin_internal.h" +size_t bench_times = 1000; using namespace pinyin; @@ -30,7 +31,7 @@ int main(int argc, char * argv[]) { pinyin_option_t options = PINYIN_CORRECT_ALL; options |= PINYIN_INCOMPLETE; - PhoneticParser2 * parser = FullPinyinParser2(); + PhoneticParser2 * parser = new FullPinyinParser2(); ChewingKeyVector keys = g_array_new(FALSE, FALSE, sizeof(ChewingKey)); ChewingKeyRestVector key_rests = g_array_new(FALSE, FALSE, sizeof(ChewingKeyRest)); |