From 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 13:48:24 +0300 Subject: improve a bit strings declaration. --- src/gui/widgets/chattab.cpp | 4 ++-- src/gui/widgets/setupitem.cpp | 4 ++-- src/gui/widgets/tradetab.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 804da2f18..aba79034f 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -142,7 +142,7 @@ void ChatTab::chatLog(std::string line, Own own, own = ACT_IS; } - std::string lineColor = "##C"; + std::string lineColor("##C"); switch (own) { case BY_GM: @@ -500,7 +500,7 @@ void ChatTab::loadFromLogFile(const std::string &name) std::list::const_iterator i = list.begin(); while (i != list.end()) { - std::string line = "##9" + *i; + std::string line("##9" + *i); addRow(line); ++i; } diff --git a/src/gui/widgets/setupitem.cpp b/src/gui/widgets/setupitem.cpp index 011f26b83..417133ec6 100644 --- a/src/gui/widgets/setupitem.cpp +++ b/src/gui/widgets/setupitem.cpp @@ -513,8 +513,8 @@ void SetupItemLabel::createControls() { if (mIsSeparator) { - const std::string str = " \342\200\225\342\200\225\342\200\225" - "\342\200\225\342\200\225 "; + const std::string str (" \342\200\225\342\200\225\342\200\225" + "\342\200\225\342\200\225 "); mLabel = new Label(this, std::string(str).append(mText).append(str)); } else diff --git a/src/gui/widgets/tradetab.cpp b/src/gui/widgets/tradetab.cpp index f266f1c8c..c0a4d4d33 100644 --- a/src/gui/widgets/tradetab.cpp +++ b/src/gui/widgets/tradetab.cpp @@ -40,7 +40,7 @@ TradeTab::~TradeTab() void TradeTab::handleInput(const std::string &msg) { - std::string str = "\302\202" + msg; + std::string str("\302\202" + msg); ChatTab::handleInput(str); } -- cgit v1.2.3-70-g09d2