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/net/ea/adminhandler.cpp | 2 +- src/net/ea/buysellhandler.cpp | 4 ++-- src/net/ea/chathandler.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/adminhandler.cpp b/src/net/ea/adminhandler.cpp index 36a08bc4c..d9c4e0d88 100644 --- a/src/net/ea/adminhandler.cpp +++ b/src/net/ea/adminhandler.cpp @@ -34,7 +34,7 @@ extern int serverVersion; namespace Ea { -const std::string GENERAL_CHANNEL = ""; +const std::string GENERAL_CHANNEL; void AdminHandler::kickName(const std::string &name) const { diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index f1eb536fd..601c3fbdf 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -57,7 +57,7 @@ void BuySellHandler::requestSellList(const std::string &nick) const if (nick.empty() != 0 || !shopWindow) return; - const std::string data = "!selllist " + toString(tick_time); + const std::string data("!selllist " + toString(tick_time)); shopWindow->setAcceptPlayer(nick); if (config.getBoolValue("hideShopMessages")) @@ -76,7 +76,7 @@ void BuySellHandler::requestBuyList(const std::string &nick) const if (nick.empty() || !shopWindow) return; - const std::string data = "!buylist " + toString(tick_time); + const std::string data("!buylist " + toString(tick_time)); shopWindow->setAcceptPlayer(nick); if (config.getBoolValue("hideShopMessages")) diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index d40f351c1..403848a88 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -339,7 +339,7 @@ void ChatHandler::processChat(Net::MessageIn &msg, const bool normalChat, if (channel.empty()) { - const std::string senseStr = "You sense the following: "; + const std::string senseStr("You sense the following: "); if (actorSpriteManager && !chatMsg.find(senseStr)) { actorSpriteManager->parseLevels( -- cgit v1.2.3-70-g09d2