projects
/
platform
/
upstream
/
jsoncpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
784433a
)
fixed a bug found by -Wshadow
author
Christopher Dunn
<cdunn2001@gmail.com>
Sun, 12 Jul 2015 17:58:54 +0000
(12:58 -0500)
committer
Christopher Dunn
<cdunn2001@gmail.com>
Sun, 12 Jul 2015 19:28:55 +0000
(14:28 -0500)
src/lib_json/json_value.cpp
patch
|
blob
|
history
diff --git
a/src/lib_json/json_value.cpp
b/src/lib_json/json_value.cpp
index
334bb04
..
231089f
100644
(file)
--- a/
src/lib_json/json_value.cpp
+++ b/
src/lib_json/json_value.cpp
@@
-1132,8
+1132,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 ke
e
y(i);
+ (*value_.map_)[ke
e
y] = (*this)[i + 1];
}
// erase the last one ("leftover")
CZString keyLast(oldSize - 1);