cmJSONHelpers.h: Use map::emplace() instead of operator[]

This commit is contained in:
Alex Turbov 2024-08-13 22:35:40 +04:00
parent e7dcd51a61
commit 503a73b183

View File

@ -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;