summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 03:17:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 03:17:28 +0300
commit4acdea8dc3c12147965f63b2974d192d8cd0ed34 (patch)
tree0d2b9a697e19c4e3149749c1cc200443dcbc6e34 /src/gui/popups
parentaa0e715fe63eed2795944fda68ab64270b51453b (diff)
downloadplus-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.gz
plus-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.bz2
plus-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.xz
plus-4acdea8dc3c12147965f63b2974d192d8cd0ed34.zip
Improve strings concatination performance.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/itempopup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp
index 3fc546cf0..9800455ca 100644
--- a/src/gui/popups/itempopup.cpp
+++ b/src/gui/popups/itempopup.cpp
@@ -370,7 +370,7 @@ std::string ItemPopup::getOptionsString(const ItemOptionsList *const options)
if (!effect.empty())
effect.append(" / ");
if (field->sign && value[0] != '-')
- value = "+" + value;
+ value.append("+").append(value);
const std::string format = translator->getStr(field->description);
effect.append(strprintf(format.c_str(),
value.c_str()));