summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-25 03:35:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-25 03:35:52 +0300
commit8478d540748edccf36dc9bda5f0c3de0aa7bf763 (patch)
tree941a08937450982abb8781e8dd4bd4bd209cf88c /src/configuration.cpp
parent6ce49efadfadd8eacb048df274979736bb04daf0 (diff)
downloadplus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.gz
plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.bz2
plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.tar.xz
plus-8478d540748edccf36dc9bda5f0c3de0aa7bf763.zip
Improve string usage in other files.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 2a8e4ecf5..fa0d1dc18 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -822,13 +822,14 @@ void Configuration::removeOldKeys()
}
for (f = 0; f < 80; f ++)
{
- deleteKey("Outfit" + toString(f));
- deleteKey("OutfitUnequip" + toString(f));
- deleteKey("commandShortcutCmd" + toString(f));
- deleteKey("commandShortcutFlags" + toString(f));
- deleteKey("commandShortcutSymbol" + toString(f));
- deleteKey("drop" + toString(f));
- deleteKey("shortcut" + toString(f));
+ const std::string str = toString(f);
+ deleteKey("Outfit" + str);
+ deleteKey("OutfitUnequip" + str);
+ deleteKey("commandShortcutCmd" + str);
+ deleteKey("commandShortcutFlags" + str);
+ deleteKey("commandShortcutSymbol" + str);
+ deleteKey("drop" + str);
+ deleteKey("shortcut" + str);
}
}
}