summaryrefslogtreecommitdiff
path: root/src/net/tmwa/adminhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-26 01:58:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-26 01:58:10 +0300
commit170b469cbcf4adcd82604a6b2efd5a0630ef3fb5 (patch)
treed37c726898a3a283d5f750b536dbe32bb326463f /src/net/tmwa/adminhandler.cpp
parent43be2ecae97034f764460a5932ca97e6354da89e (diff)
downloadmanaplus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.tar.gz
manaplus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.tar.bz2
manaplus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.tar.xz
manaplus-170b469cbcf4adcd82604a6b2efd5a0630ef3fb5.zip
add missing const to adminhandler.
Diffstat (limited to 'src/net/tmwa/adminhandler.cpp')
-rw-r--r--src/net/tmwa/adminhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp
index f5a8b7d05..4ff07bd76 100644
--- a/src/net/tmwa/adminhandler.cpp
+++ b/src/net/tmwa/adminhandler.cpp
@@ -68,27 +68,27 @@ void AdminHandler::handleMessage(Net::MessageIn &msg)
BLOCK_END("AdminHandler::handleMessage")
}
-void AdminHandler::announce(const std::string &text)
+void AdminHandler::announce(const std::string &text) const
{
MessageOut outMsg(CMSG_ADMIN_ANNOUNCE);
outMsg.writeInt16(static_cast<int16_t>(text.length() + 4));
outMsg.writeString(text, static_cast<int>(text.length()));
}
-void AdminHandler::localAnnounce(const std::string &text)
+void AdminHandler::localAnnounce(const std::string &text) const
{
MessageOut outMsg(CMSG_ADMIN_LOCAL_ANNOUNCE);
outMsg.writeInt16(static_cast<int16_t>(text.length() + 4));
outMsg.writeString(text, static_cast<int>(text.length()));
}
-void AdminHandler::hide(const bool h A_UNUSED)
+void AdminHandler::hide(const bool h A_UNUSED) const
{
MessageOut outMsg(CMSG_ADMIN_HIDE);
outMsg.writeInt32(0); //unused
}
-void AdminHandler::kick(const int playerId)
+void AdminHandler::kick(const int playerId) const
{
MessageOut outMsg(CMSG_ADMIN_KICK);
outMsg.writeInt32(playerId);