summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
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
{