mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmJSONHelpers.h: Use map::emplace() instead of operator[]
This commit is contained in:
@@ -348,7 +348,7 @@ struct cmJSONHelperBuilder
|
||||
if (!func(t, &(*value)[key], state)) {
|
||||
success = false;
|
||||
}
|
||||
out[key] = std::move(t);
|
||||
out.emplace(key, std::move(t));
|
||||
state->pop_stack();
|
||||
}
|
||||
return success;
|
||||
|
||||
Reference in New Issue
Block a user