fixes a typo
authorPeng Wu <alexepico@gmail.com>
Wed, 28 Nov 2012 02:50:35 +0000 (10:50 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 28 Nov 2012 02:50:35 +0000 (10:50 +0800)
src/storage/phrase_index.cpp
src/storage/phrase_index.h

index d5b0ddc..3df14f5 100644 (file)
@@ -53,8 +53,8 @@ void PhraseItem::append_pronunciation(ChewingKey * keys, guint32 freq){
 void PhraseItem::remove_nth_pronunciation(size_t index){
     guint8 phrase_length = get_phrase_length();
     set_n_pronunciation(get_n_pronunciation() - 1);
-    size_t offset = phrase_item_header + phrase_length * sizeof ( ucs4_t ) +
-        index * (phrase_length * sizeof (ChewingKey) + sizeof(guint32));
+    size_t offset = phrase_item_header + phrase_length * sizeof(ucs4_t) +
+        index * (phrase_length * sizeof(ChewingKey) + sizeof(guint32));
     m_chunk.remove_content(offset, phrase_length * sizeof(ChewingKey) + sizeof(guint32));
 }
 
index 75813bf..aca74f6 100644 (file)
@@ -42,7 +42,7 @@
  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  * + Phrase Length + number of  Pronunciations  + Uni-gram Frequency+
  * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- * + Phrase String(UCS2) + n Pronunciations with Frequency +
+ * + Phrase String(UCS4) + n Pronunciations with Frequency +
  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  */