summaryrefslogtreecommitdiff
path: root/src/inputmanager.cpp
diff options
context:
space:
mode:
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);
}
}