summaryrefslogtreecommitdiff
path: root/src/utils
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/utils
parentaa0e715fe63eed2795944fda68ab64270b51453b (diff)
downloadmv-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.gz
mv-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.bz2
mv-4acdea8dc3c12147965f63b2974d192d8cd0ed34.tar.xz
mv-4acdea8dc3c12147965f63b2974d192d8cd0ed34.zip
Improve strings concatination performance.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/stringutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index d21702ed1..1f0888629 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -431,7 +431,7 @@ void replaceSpecialChars(std::string &text)
std::string str(" ");
str[0] = CAST_S8(atoi(text.substr(
idx, f - idx).c_str()));
- text = text.substr(0, pos1) + str + text.substr(f + 1);
+ text = text.substr(0, pos1).append(str).append(text.substr(f + 1));
pos1 += 1;
}
else