diff options
author | Peng Wu <alexepico@gmail.com> | 2017-01-20 12:42:00 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2017-01-20 12:42:00 +0800 |
commit | e862a1001867d71a452119b35ee3726a92c4744f (patch) | |
tree | 842f5b32ec094e93ffea9cb61c0c3999b434656b /src | |
parent | c43f884dcb230ff7a29d5b05d53880ef37ecf85e (diff) | |
download | libpinyin-e862a1001867d71a452119b35ee3726a92c4744f.tar.gz libpinyin-e862a1001867d71a452119b35ee3726a92c4744f.tar.xz libpinyin-e862a1001867d71a452119b35ee3726a92c4744f.zip |
rename variable name
Diffstat (limited to 'src')
-rw-r--r-- | src/lookup/phonetic_lookup.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h index ba3c11e..dcfc2ce 100644 --- a/src/lookup/phonetic_lookup.h +++ b/src/lookup/phonetic_lookup.h @@ -357,11 +357,11 @@ public: template <gint32 nbest> bool extract_result(const ForwardPhoneticTrellis<nbest> * trellis, const trellis_value_t * tail, - /* out */ MatchResults & results) { - /* reset results */ - g_array_set_size(results, trellis->size()); - for (size_t i = 0; i < results->len; ++i){ - phrase_token_t * token = &g_array_index(results, phrase_token_t, i); + /* out */ MatchResults & result) { + /* reset result */ + g_array_set_size(result, trellis->size()); + for (size_t i = 0; i < result->len; ++i){ + phrase_token_t * token = &g_array_index(result, phrase_token_t, i); *token = null_token; } @@ -372,7 +372,7 @@ bool extract_result(const ForwardPhoneticTrellis<nbest> * trellis, break; phrase_token_t * token = &g_array_index - (results, phrase_token_t, index); + (result, phrase_token_t, index); *token = tail->m_handles[1]; phrase_token_t last_token = tail->m_handles[0]; |