diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-24 22:59:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-24 22:59:54 +0300 |
commit | 6ce49efadfadd8eacb048df274979736bb04daf0 (patch) | |
tree | 60d4c2c2a803db003f6fa28e932468e925112580 /src/inputmanager.cpp | |
parent | 466829aef10af6b95d0f443226e8549f4399b567 (diff) | |
download | manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.gz manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.bz2 manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.tar.xz manaverse-6ce49efadfadd8eacb048df274979736bb04daf0.zip |
Improve string usage in some files.
Diffstat (limited to 'src/inputmanager.cpp')
-rw-r--r-- | src/inputmanager.cpp | 10 |
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); } } |