diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-26 13:35:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-26 13:35:24 +0300 |
commit | 5190fe2cdac7c259d96619e4686f8543bdc96af4 (patch) | |
tree | 3a49895b4371fcd58a2446c0b3b0128ca1933568 /src/utils/translation | |
parent | d4febba47388979b26cd4680cb8a6f20e548e399 (diff) | |
download | manaplus-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.gz manaplus-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.bz2 manaplus-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.xz manaplus-5190fe2cdac7c259d96619e4686f8543bdc96af4.zip |
Improve string usage in other files.
Diffstat (limited to 'src/utils/translation')
-rw-r--r-- | src/utils/translation/poparser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp index c0f518b52..d4426a2e3 100644 --- a/src/utils/translation/poparser.cpp +++ b/src/utils/translation/poparser.cpp @@ -134,7 +134,7 @@ bool PoParser::readMsgId() else if (checkLine()) { // reading text from: "text" - mMsgId += mLine.substr(1, mLine.size() - 2); + mMsgId.append(mLine.substr(1, mLine.size() - 2)); mLine.clear(); return true; } @@ -149,8 +149,8 @@ bool PoParser::readMsgId() { mReadingId = true; // reading text from: msgid "text" - mMsgId += mLine.substr(msgId1.size(), - mLine.size() - 1 - msgId1.size()); + mMsgId.append(mLine.substr(msgId1.size(), + mLine.size() - 1 - msgId1.size())); mLine.clear(); return true; } @@ -175,7 +175,7 @@ bool PoParser::readMsgStr() if (checkLine()) { // reading text from: "text" - mMsgStr += mLine.substr(1, mLine.size() - 2); + mMsgStr.append(mLine.substr(1, mLine.size() - 2)); mLine.clear(); return true; } @@ -189,8 +189,8 @@ bool PoParser::readMsgStr() { mReadingStr = true; // reading text from: msgid "text" - mMsgStr += mLine.substr(msgStr1.size(), - mLine.size() - 1 - msgStr1.size()); + mMsgStr.append(mLine.substr(msgStr1.size(), + mLine.size() - 1 - msgStr1.size())); mLine.clear(); return true; } |