fixed a bug found by -Wshadow

This commit is contained in:
Christopher Dunn 2015-07-12 12:58:54 -05:00
parent 17360f3d4b
commit 542354902e

View File

@ -1128,8 +1128,8 @@ bool Value::removeIndex(ArrayIndex index, Value* removed) {
ArrayIndex oldSize = size();
// shift left all items left, into the place of the "removed"
for (ArrayIndex i = index; i < (oldSize - 1); ++i){
CZString key(i);
(*value_.map_)[key] = (*this)[i + 1];
CZString keey(i);
(*value_.map_)[keey] = (*this)[i + 1];
}
// erase the last one ("leftover")
CZString keyLast(oldSize - 1);