summaryrefslogtreecommitdiff
path: root/src/guichan/widgets/textbox.cpp
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/guichan/widgets/textbox.cpp
parentd4febba47388979b26cd4680cb8a6f20e548e399 (diff)
downloadManaVerse-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.gz
ManaVerse-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.bz2
ManaVerse-5190fe2cdac7c259d96619e4686f8543bdc96af4.tar.xz
ManaVerse-5190fe2cdac7c259d96619e4686f8543bdc96af4.zip
Improve string usage in other files.
Diffstat (limited to 'src/guichan/widgets/textbox.cpp')
-rw-r--r--src/guichan/widgets/textbox.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/guichan/widgets/textbox.cpp b/src/guichan/widgets/textbox.cpp
index 94edba281..c858c7ede 100644
--- a/src/guichan/widgets/textbox.cpp
+++ b/src/guichan/widgets/textbox.cpp
@@ -269,9 +269,8 @@ namespace gcn
const int sz = static_cast<int>(mTextRows.size());
for (i = 0; i < sz - 1; ++ i)
- text = text + mTextRows[i] + "\n";
-
- text = text + mTextRows[i];
+ text.append(mTextRows[i]).append("\n");
+ text.append(mTextRows[i]);
return text;
}