summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 21:29:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 21:29:59 +0300
commita33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (patch)
tree1b1e98a615e2c03641c99b66cb4667b56f7087c3 /src/commandhandler.cpp
parent012a10fd8153f3ddb775dde1e4dba4456f2aa9de (diff)
downloadmanaverse-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.gz
manaverse-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.bz2
manaverse-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.xz
manaverse-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.zip
Add const to some classes.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 502034fe8..12baf0af0 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -78,13 +78,15 @@ CommandHandler::CommandHandler()
{
}
-void CommandHandler::handleCommands(const std::string &command, ChatTab *tab)
+void CommandHandler::handleCommands(const std::string &command,
+ ChatTab *const tab)
{
// here need add splitting commands
handleCommand(command, tab);
}
-void CommandHandler::handleCommand(const std::string &command, ChatTab *tab)
+void CommandHandler::handleCommand(const std::string &command,
+ ChatTab *const tab)
{
size_t pos = command.find(' ');
std::string type(command, 0, pos);
@@ -448,7 +450,7 @@ void CommandHandler::outString(ChatTab *const tab, const std::string &str,
{
if (!player_node)
return;
- const Guild *guild = player_node->getGuild();
+ const Guild *const guild = player_node->getGuild();
if (guild)
{
if (guild->getServerGuild())
@@ -814,7 +816,7 @@ void CommandHandler::handleHeal(const std::string &args,
if (!args.empty())
{
- Being *const being = actorSpriteManager->findBeingByName(
+ const Being *const being = actorSpriteManager->findBeingByName(
args, Being::PLAYER);
if (being)
actorSpriteManager->heal(being);
@@ -864,7 +866,7 @@ void CommandHandler::handleUndress(const std::string &args,
if (!actorSpriteManager)
return;
- Being* target = actorSpriteManager->findNearestByName(args);
+ Being *const target = actorSpriteManager->findNearestByName(args);
if (target)
Net::getBeingHandler()->undress(target);
}