Skip to content

Commit 7f24062

Browse files
committed
fixed a bug found by -Wshadow
1 parent 784433a commit 7f24062

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib_json/json_value.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,8 @@ bool Value::removeIndex(ArrayIndex index, Value* removed) {
11321132
ArrayIndex oldSize = size();
11331133
// shift left all items left, into the place of the "removed"
11341134
for (ArrayIndex i = index; i < (oldSize - 1); ++i){
1135-
CZString key(i);
1136-
(*value_.map_)[key] = (*this)[i + 1];
1135+
CZString keey(i);
1136+
(*value_.map_)[keey] = (*this)[i + 1];
11371137
}
11381138
// erase the last one ("leftover")
11391139
CZString keyLast(oldSize - 1);

0 commit comments

Comments
 (0)