mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05: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)) {
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user