mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Use emplace instead of find-assign
This commit is contained in:
parent
5bce3cbc68
commit
a567111400
2 changed files with 2 additions and 7 deletions
|
@ -61,10 +61,7 @@ namespace SceneUtil
|
|||
{
|
||||
// Take transformation for first found node in file
|
||||
const std::string nodeName = Misc::StringUtils::lowerCase(trans.getName());
|
||||
if (mMap.find(nodeName) == mMap.end())
|
||||
{
|
||||
mMap[nodeName] = &trans;
|
||||
}
|
||||
mMap.emplace(nodeName, &trans);
|
||||
|
||||
traverse(trans);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue