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/guichan/widgets/textbox.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/guichan') 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(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; } -- cgit v1.2.3-60-g2f50