f->open_object_section(desckv["name"].c_str());
// dump all the keys including name into the array
for (std::map<std::string, std::string>::iterator it = desckv.begin();
- it != desckv.end(); it++) {
+ it != desckv.end(); ++it) {
f->dump_string(it->first.c_str(), it->second);
}
f->close_section(); // attribute object for individual desc
string fullcmd;
// First, join all cmd strings
for (vector<string>::iterator it = cmd.begin();
- it != cmd.end(); it++)
+ it != cmd.end(); ++it)
fullcmd += *it;
try {
// make sure all contents are simple types (not arrays or objects)
json_spirit::mObject o = v.get_obj();
for (map<string, json_spirit::mValue>::iterator it = o.begin();
- it != o.end(); it++) {
+ it != o.end(); ++it) {
// ok, marshal it into our string->cmd_vartype map, or throw an
// exception if it's not a simple datatype. This is kind of
vector<json_spirit::mValue> spvals = it->second.get_array();
vector<string> outv;
for (vector<json_spirit::mValue>::iterator sv = spvals.begin();
- sv != spvals.end(); sv++) {
+ sv != spvals.end(); ++sv) {
if (sv->type() != json_spirit::str_type)
throw(runtime_error("Can't handle arrays of non-strings"));
outv.push_back(sv->get_str());