summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/storage/phrase_index.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/storage/phrase_index.h b/src/storage/phrase_index.h
index 7e7739e..45194eb 100644
--- a/src/storage/phrase_index.h
+++ b/src/storage/phrase_index.h
@@ -662,8 +662,8 @@ public:
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
SubPhraseIndex * sub_phrase = m_sub_phrase_indices[i];
if (sub_phrase) {
- GArray * & onerange = ranges[i];
- onerange = g_array_new(FALSE, FALSE, sizeof(PhraseIndexRange));
+ GArray * & range = ranges[i];
+ range = g_array_new(FALSE, FALSE, sizeof(PhraseIndexRange));
}
}
return true;
@@ -679,9 +679,9 @@ public:
*/
bool clear_ranges(PhraseIndexRanges ranges) {
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
- GArray * onerange = ranges[i];
- if (onerange) {
- g_array_set_size(onerange, 0);
+ GArray * range = ranges[i];
+ if (range) {
+ g_array_set_size(range, 0);
}
}
}
@@ -696,10 +696,10 @@ public:
*/
bool destroy_ranges(PhraseIndexRanges ranges) {
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
- GArray * & onerange = ranges[i];
- if (onerange) {
- g_array_free(onerange, TRUE);
- onerange = NULL;
+ GArray * & range = ranges[i];
+ if (range) {
+ g_array_free(range, TRUE);
+ range = NULL;
}
}
return true;