From 89e2f1ef616670cc51a535a80b638479e94e09eb Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 9 Feb 2017 16:36:59 +0800 Subject: fixes compile --- src/lookup/phonetic_lookup.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lookup') diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h index c90c994..e3d6c36 100644 --- a/src/lookup/phonetic_lookup.h +++ b/src/lookup/phonetic_lookup.h @@ -432,6 +432,11 @@ public: } public: + bool clear() { + g_array_set_size(m_constraints, 0); + return true; + } + int add_constraint(size_t start, size_t end, phrase_token_t token); bool clear_constraint(size_t index); bool validate_constraint(PhoneticKeyMatrix * matrix); -- cgit