From 5190fe2cdac7c259d96619e4686f8543bdc96af4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 13:35:24 +0300 Subject: Improve string usage in other files. --- src/utils/translation/poparser.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/utils/translation') 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; } -- cgit v1.2.3-70-g09d2