mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-05-18 11:35:34 +02:00
fixed a bug found by -Wshadow
This commit is contained in:
parent
784433ac72
commit
7f240623d3
@ -1132,8 +1132,8 @@ bool Value::removeIndex(ArrayIndex index, Value* removed) {
|
|||||||
ArrayIndex oldSize = size();
|
ArrayIndex oldSize = size();
|
||||||
// shift left all items left, into the place of the "removed"
|
// shift left all items left, into the place of the "removed"
|
||||||
for (ArrayIndex i = index; i < (oldSize - 1); ++i){
|
for (ArrayIndex i = index; i < (oldSize - 1); ++i){
|
||||||
CZString key(i);
|
CZString keey(i);
|
||||||
(*value_.map_)[key] = (*this)[i + 1];
|
(*value_.map_)[keey] = (*this)[i + 1];
|
||||||
}
|
}
|
||||||
// erase the last one ("leftover")
|
// erase the last one ("leftover")
|
||||||
CZString keyLast(oldSize - 1);
|
CZString keyLast(oldSize - 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user