summaryrefslogtreecommitdiff
path: root/src/inputmanager.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/inputmanager.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/inputmanager.cpp')
-rw-r--r--src/inputmanager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inputmanager.cpp b/src/inputmanager.cpp
index c011784ba..11b810caf 100644
--- a/src/inputmanager.cpp
+++ b/src/inputmanager.cpp
@@ -173,12 +173,12 @@ void InputManager::store() const
{
if (keyStr.empty())
{
- keyStr = tmp + toString(key.value);
+ keyStr.append(tmp).append(toString(key.value));
}
else
{
- keyStr += strprintf(",%s%d",
- tmp.c_str(), key.value);
+ keyStr.append(strprintf(",%s%d",
+ tmp.c_str(), key.value));
}
}
}
@@ -318,7 +318,7 @@ std::string InputManager::getKeyStringLong(const int index) const
if (keyStr.empty())
keyStr = str;
else
- keyStr += std::string(" ") + str;
+ keyStr.append(" ").append(str);
}
}
@@ -357,7 +357,7 @@ std::string InputManager::getKeyValueString(const int index) const
if (keyStr.empty())
keyStr = str;
else
- keyStr += std::string(" ") + str;
+ keyStr.append(" ").append(str);
}
}