cmJSONHelpers.h: Use map::emplace()
instead of operator[]
This commit is contained in:
parent
e7dcd51a61
commit
503a73b183
@ -348,7 +348,7 @@ struct cmJSONHelperBuilder
|
|||||||
if (!func(t, &(*value)[key], state)) {
|
if (!func(t, &(*value)[key], state)) {
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
out[key] = std::move(t);
|
out.emplace(key, std::move(t));
|
||||||
state->pop_stack();
|
state->pop_stack();
|
||||||
}
|
}
|
||||||
return success;
|
return success;
|
||||||
|
Loading…
Reference in New Issue
Block a user