Skip to content

Commit 5423549

Browse files
committed
fixed a bug found by -Wshadow
1 parent 17360f3 commit 5423549

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
@@ -1128,8 +1128,8 @@ bool Value::removeIndex(ArrayIndex index, Value* removed) {
11281128
ArrayIndex oldSize = size();
11291129
// shift left all items left, into the place of the "removed"
11301130
for (ArrayIndex i = index; i < (oldSize - 1); ++i){
1131-
CZString key(i);
1132-
(*value_.map_)[key] = (*this)[i + 1];
1131+
CZString keey(i);
1132+
(*value_.map_)[keey] = (*this)[i + 1];
11331133
}
11341134
// erase the last one ("leftover")
11351135
CZString keyLast(oldSize - 1);

0 commit comments

Comments
 (0)