From 170b469cbcf4adcd82604a6b2efd5a0630ef3fb5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Mar 2013 01:58:10 +0300 Subject: add missing const to adminhandler. --- src/net/tmwa/adminhandler.cpp | 8 ++++---- src/net/tmwa/adminhandler.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/net/tmwa') 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(text.length() + 4)); outMsg.writeString(text, static_cast(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(text.length() + 4)); outMsg.writeString(text, static_cast(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); diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index f322cf4bf..15bb42e88 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -42,13 +42,13 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void handleMessage(Net::MessageIn &msg); - void announce(const std::string &text); + void announce(const std::string &text) const; - void localAnnounce(const std::string &text); + void localAnnounce(const std::string &text) const; - void hide(const bool h); + void hide(const bool h) const; - void kick(const int playerId); + void kick(const int playerId) const; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2