// array is a vector of values. Unpack it to a vector
// of strings, the only type we handle.
vector<json_spirit::mValue> spvals = it->second.get_array();
- vector<string> *outvp = new vector<string>;
+ vector<string> outv;
for (vector<json_spirit::mValue>::iterator sv = spvals.begin();
sv != spvals.end(); sv++) {
if (sv->type() != json_spirit::str_type)
throw(runtime_error("Can't handle arrays of non-strings"));
- outvp->push_back(sv->get_str());
+ outv.push_back(sv->get_str());
}
- (*mapp)[it->first] = *outvp;
+ (*mapp)[it->first] = outv;
}
break;
case json_spirit::str_type: