diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-08 03:17:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-08 03:17:28 +0300 |
commit | 4acdea8dc3c12147965f63b2974d192d8cd0ed34 (patch) | |
tree | 0d2b9a697e19c4e3149749c1cc200443dcbc6e34 /src/resources/db | |
parent | aa0e715fe63eed2795944fda68ab64270b51453b (diff) | |
download | manaverse-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.gz manaverse-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.bz2 manaverse-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.xz manaverse-4acdea8dc3c12147965f63b2974d192d8cd0ed34.zip |
Improve strings concatination performance.
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/itemdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index 6efe6086f..5f92fc4e0 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -145,7 +145,7 @@ static void readFields(std::string &effect, if (!effect.empty()) effect.append(" / "); if (field->sign && isDigit(value)) - value = "+" + value; + value.append("+").append(value); const std::string format = translator->getStr(field->description); effect.append(strprintf(format.c_str(), value.c_str())); |