diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-25 13:48:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-25 13:48:24 +0300 |
commit | 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (patch) | |
tree | df4a3e32b8ad9e77d894280966a0066f4aef0a94 /src/gui/widgets | |
parent | 9a970ba6bc80938b56f3ba731bf4614b40ba573d (diff) | |
download | manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.gz manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.bz2 manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.tar.xz manaverse-6c05739c62484dae8d5ed9fb0dfdb6590aacfe88.zip |
improve a bit strings declaration.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/setupitem.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/tradetab.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
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<std::string>::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); } |