summaryrefslogtreecommitdiffstats
path: root/src/storage/pinyin_large_table.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-31 15:37:10 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-31 15:37:10 +0800
commit846e8ee8f62be6018a1d10d4d303f41d89e8787e (patch)
treef70bca49bbf77ed701cb24ba0262a5759f5d5c2b /src/storage/pinyin_large_table.cpp
parentb0ea21fda50b43d964f8ddc84f62ff3bb61043c8 (diff)
downloadlibpinyin-846e8ee8f62be6018a1d10d4d303f41d89e8787e.tar.gz
libpinyin-846e8ee8f62be6018a1d10d4d303f41d89e8787e.tar.xz
libpinyin-846e8ee8f62be6018a1d10d4d303f41d89e8787e.zip
fini add/remove index
Diffstat (limited to 'src/storage/pinyin_large_table.cpp')
-rw-r--r--src/storage/pinyin_large_table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/pinyin_large_table.cpp b/src/storage/pinyin_large_table.cpp
index 7d0ac4a..f05317c 100644
--- a/src/storage/pinyin_large_table.cpp
+++ b/src/storage/pinyin_large_table.cpp
@@ -455,12 +455,12 @@ int PinyinArrayIndexLevel<phrase_length>::remove_index(/* in */ PinyinKey keys[]
PhraseExactLessThan<phrase_length> m_lessthan;
PinyinIndexItem<phrase_length> * buf_begin, * buf_end;
- PinyinIndexItem<phrase_length> new_elem(keys, token);
+ PinyinIndexItem<phrase_length> remove_elem(keys, token);
buf_begin = (PinyinIndexItem<phrase_length> *) m_chunk.begin();
buf_end = (PinyinIndexItem<phrase_length> *) m_chunk.end();
std_lite::pair<PinyinIndexItem<phrase_length> *, PinyinIndexItem<phrase_length> *> range;
- range = std_lite::equal_range(buf_begin, buf_end, new_elem, m_lessthan);
+ range = std_lite::equal_range(buf_begin, buf_end, remove_elem, m_lessthan);
PinyinIndexItem<phrase_length> * cur_elem;
for ( cur_elem = range.first;