summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-24 22:59:54 +0300
commit6ce49efadfadd8eacb048df274979736bb04daf0 (patch)
tree60d4c2c2a803db003f6fa28e932468e925112580 /src/itemshortcut.cpp
parent466829aef10af6b95d0f443226e8549f4399b567 (diff)
downloadmanaplus-6ce49efadfadd8eacb048df274979736bb04daf0.tar.gz
manaplus-6ce49efadfadd8eacb048df274979736bb04daf0.tar.bz2
manaplus-6ce49efadfadd8eacb048df274979736bb04daf0.tar.xz
manaplus-6ce49efadfadd8eacb048df274979736bb04daf0.zip
Improve string usage in some files.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 96516eadb..03efa63c3 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -63,8 +63,9 @@ void ItemShortcut::load(const bool oldConfig)
if (mNumber)
{
- name = "shortcut" + toString(mNumber) + "_";
- color = "shortcutColor" + toString(mNumber) + "_";
+ name = std::string("shortcut").append(toString(mNumber)).append("_");
+ color = std::string("shortcutColor").append(
+ toString(mNumber)).append("_");
}
else
{
@@ -88,8 +89,9 @@ void ItemShortcut::save() const
std::string color;
if (mNumber)
{
- name = "shortcut" + toString(mNumber) + "_";
- color = "shortcutColor" + toString(mNumber) + "_";
+ name = std::string("shortcut").append(toString(mNumber)).append("_");
+ color = std::string("shortcutColor").append(
+ toString(mNumber)).append("_");
}
else
{