mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-03 15:21:40 +00:00
COMMON: Avoid an unnecessary copy in the XML parser
This commit is contained in:
parent
fb39b94384
commit
9a1e2368b2
@ -169,7 +169,7 @@ bool XMLParser::parseActiveKey(bool closed) {
|
||||
if (layout->children.contains(key->name)) {
|
||||
key->layout = layout->children[key->name];
|
||||
|
||||
StringMap localMap = key->values;
|
||||
const StringMap &localMap = key->values;
|
||||
int keyCount = localMap.size();
|
||||
|
||||
for (List<XMLKeyLayout::XMLKeyProperty>::const_iterator i = key->layout->properties.begin(); i != key->layout->properties.end(); ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user