summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 13:35:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 13:35:24 +0300
commit5190fe2cdac7c259d96619e4686f8543bdc96af4 (patch)
tree3a49895b4371fcd58a2446c0b3b0128ca1933568 /src/utils
parentd4febba47388979b26cd4680cb8a6f20e548e399 (diff)
downloadmv-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.gz
mv-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.bz2
mv-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.xz
mv-5190fe2cdac7c259d96619e4686f8543bdc96af4.zip
Improve string usage in other files.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/poparser.cpp12
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;
}