mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
Avoid using Map::merge
svn-id: r21511
This commit is contained in:
parent
e0b3e777cf
commit
a23fba7a42
@ -501,7 +501,12 @@ void ConfigManager::renameGameDomain(const String &oldName, const String &newNam
|
||||
assert(isValidDomainName(oldName));
|
||||
assert(isValidDomainName(newName));
|
||||
|
||||
_gameDomains[newName].merge(_gameDomains[oldName]);
|
||||
// _gameDomains[newName].merge(_gameDomains[oldName]);
|
||||
Domain &oldDom(_gameDomains[oldName]);
|
||||
Domain &newDom(_gameDomains[newName]);
|
||||
Domain::const_iterator iter;
|
||||
for (iter = oldDom.begin(); iter != oldDom.end(); ++iter)
|
||||
newDom[iter->_key] = iter->_value;
|
||||
|
||||
_gameDomains.erase(oldName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user