fixed a bug found by -Wshadow
authorChristopher Dunn <cdunn2001@gmail.com>
Sun, 12 Jul 2015 17:58:54 +0000 (12:58 -0500)
committerChristopher Dunn <cdunn2001@gmail.com>
Sun, 12 Jul 2015 19:28:55 +0000 (14:28 -0500)
src/lib_json/json_value.cpp

index 334bb04..231089f 100644 (file)
@@ -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 keey(i);
+    (*value_.map_)[keey] = (*this)[i + 1];
   }
   // erase the last one ("leftover")
   CZString keyLast(oldSize - 1);