Skip to content

Commit 59167d8

Browse files
committed
more changes per cr
1 parent 05c1b83 commit 59167d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib_json/json_value.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,12 +1034,12 @@ bool Value::removeIndex(ArrayIndex index, Value* removed) {
10341034
*removed = it->second;
10351035
ArrayIndex oldSize = size();
10361036
// shift left all items left, into the place of the "removed"
1037-
for (ArrayIndex i=index; i<oldSize-1; i++){
1037+
for (ArrayIndex i = index; i < (oldSize - 1); ++i){
10381038
CZString key(i);
1039-
(*value_.map_)[key] = (*this)[i+1];
1039+
(*value_.map_)[key] = (*this)[i + 1];
10401040
}
10411041
// erase the last one ("leftover")
1042-
CZString keyLast(oldSize-1);
1042+
CZString keyLast(oldSize - 1);
10431043
ObjectValues::iterator itLast = value_.map_->find(keyLast);
10441044
value_.map_->erase(itLast);
10451045
return true;

0 commit comments

Comments
 (0)