diff options
Diffstat (limited to 'src/storage/pinyin_custom.h')
-rw-r--r-- | src/storage/pinyin_custom.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/storage/pinyin_custom.h b/src/storage/pinyin_custom.h index 76c0885..e80d78e 100644 --- a/src/storage/pinyin_custom.h +++ b/src/storage/pinyin_custom.h @@ -72,7 +72,12 @@ struct PinyinCustomSettings bool use_ambiguities [PINYIN_AmbLast + 1]; /**< allow ambiguous pinyin elements or not. */ - PinyinCustomSettings (); + PinyinCustomSettings () + :use_incomplete (true) + { + for (size_t i=0; i<=PINYIN_AmbLast; ++i) + use_ambiguities [i] = false; + } void set_use_incomplete (bool use) { use_incomplete = use; } void set_use_ambiguities (PinyinAmbiguity amb, bool use) |