iterate over pair of const string and Json

mutable-v2
k0zmo 2014-12-30 10:28:51 +01:00
parent be631169db
commit 7fd738ae42
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ static void dump(const string &value, string &out) {
static void dump(const Json::array &values, string &out) {
bool first = true;
out += "[";
for (auto &value : values) {
for (const auto &value : values) {
if (!first)
out += ", ";
value.dump(out);
@ -112,7 +112,7 @@ static void dump(const Json::array &values, string &out) {
static void dump(const Json::object &values, string &out) {
bool first = true;
out += "{";
for (const std::pair<string, Json> &kv : values) {
for (const auto &kv : values) {
if (!first)
out += ", ";
dump(kv.first, out);