summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_phrase3.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/pinyin_phrase3.h')
-rw-r--r--src/storage/pinyin_phrase3.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/storage/pinyin_phrase3.h b/src/storage/pinyin_phrase3.h
index 19d56d8..b93c8e7 100644
--- a/src/storage/pinyin_phrase3.h
+++ b/src/storage/pinyin_phrase3.h
@@ -172,10 +172,8 @@ inline void compute_incomplete_chewing_index(const ChewingKey * in_keys,
ChewingKey * out_keys,
int phrase_length) {
for (int i = 0; i < phrase_length; ++i) {
- ChewingKey key = in_keys[i];
- key.m_middle = CHEWING_ZERO_MIDDLE;
- key.m_final = CHEWING_ZERO_FINAL;
- key.m_tone = CHEWING_ZERO_TONE;
+ ChewingKey key;
+ key.m_initial = in_keys[i].m_initial;
out_keys[i] = key;
}
}