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