From 05f6f3e94abc5c1e1801d62100cef494e2711474 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Feb 2014 12:47:16 +0300 Subject: Add missing const and static into net classes. --- src/net/eathena/beinghandler.cpp | 2 +- src/net/eathena/beinghandler.h | 2 +- src/net/eathena/buysellhandler.cpp | 2 +- src/net/eathena/buysellhandler.h | 2 +- src/net/eathena/gamehandler.cpp | 2 +- src/net/eathena/gamehandler.h | 2 +- src/net/eathena/loginhandler.cpp | 2 +- src/net/eathena/loginhandler.h | 2 +- src/net/eathena/npchandler.cpp | 4 ++-- src/net/eathena/npchandler.h | 4 ++-- src/net/eathena/playerhandler.cpp | 4 ++-- src/net/eathena/playerhandler.h | 4 ++-- 12 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index c7d903c32..df25f40cf 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -380,7 +380,7 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg, } } -void BeingHandler::processNameResponse2(Net::MessageIn &msg) const +void BeingHandler::processNameResponse2(Net::MessageIn &msg) { if (!actorManager || !player_node) return; diff --git a/src/net/eathena/beinghandler.h b/src/net/eathena/beinghandler.h index 9d288b053..54271edff 100644 --- a/src/net/eathena/beinghandler.h +++ b/src/net/eathena/beinghandler.h @@ -50,7 +50,7 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler void processBeingChangeLook(Net::MessageIn &msg, const bool look2) const; - void processNameResponse2(Net::MessageIn &msg) const; + static void processNameResponse2(Net::MessageIn &msg); void processPlayerMoveUpdate(Net::MessageIn &msg, const int type) const; diff --git a/src/net/eathena/buysellhandler.cpp b/src/net/eathena/buysellhandler.cpp index 8a637e435..31a831b25 100644 --- a/src/net/eathena/buysellhandler.cpp +++ b/src/net/eathena/buysellhandler.cpp @@ -107,7 +107,7 @@ void BuySellHandler::processNpcBuy(Net::MessageIn &msg) mBuyDialog->sort(); } -void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) const +void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) { switch (msg.readInt8()) { diff --git a/src/net/eathena/buysellhandler.h b/src/net/eathena/buysellhandler.h index b18df810a..38e9f5da1 100644 --- a/src/net/eathena/buysellhandler.h +++ b/src/net/eathena/buysellhandler.h @@ -41,7 +41,7 @@ class BuySellHandler final : public MessageHandler, public Ea::BuySellHandler void processNpcBuy(Net::MessageIn &msg); - void processNpcSellResponse(Net::MessageIn &msg) const; + static void processNpcSellResponse(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp index 75cbf11e8..9c7e84554 100644 --- a/src/net/eathena/gamehandler.cpp +++ b/src/net/eathena/gamehandler.cpp @@ -172,7 +172,7 @@ void GameHandler::disconnect2() const MessageOut outMsg(CMSG_CLIENT_DISCONNECT); } -void GameHandler::processMapCharId(Net::MessageIn &msg) const +void GameHandler::processMapCharId(Net::MessageIn &msg) { msg.readInt32(); // char id } diff --git a/src/net/eathena/gamehandler.h b/src/net/eathena/gamehandler.h index 2307eb089..075bc6f94 100644 --- a/src/net/eathena/gamehandler.h +++ b/src/net/eathena/gamehandler.h @@ -53,7 +53,7 @@ class GameHandler final : public MessageHandler, public Ea::GameHandler void mapLoadedEvent() const override final; - void processMapCharId(Net::MessageIn &msg) const; + static void processMapCharId(Net::MessageIn &msg); bool mustPing() const override final A_WARN_UNUSED { return true; } diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 685626d98..5ebec5106 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -153,7 +153,7 @@ ServerInfo *LoginHandler::getCharServer() const return &charServer; } -void LoginHandler::requestUpdateHosts() const +void LoginHandler::requestUpdateHosts() { MessageOut outMsg(CMSG_SEND_CLIENT_INFO); outMsg.writeInt8(CLIENT_PROTOCOL_VERSION); diff --git a/src/net/eathena/loginhandler.h b/src/net/eathena/loginhandler.h index 14d432585..a1d791fdf 100644 --- a/src/net/eathena/loginhandler.h +++ b/src/net/eathena/loginhandler.h @@ -66,7 +66,7 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler void processServerVersion(Net::MessageIn &msg); - void requestUpdateHosts() const; + static void requestUpdateHosts(); void processUpdateHost2(Net::MessageIn &msg) const; diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index f4f4eada5..75db7396b 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -242,14 +242,14 @@ int NpcHandler::getNpc(Net::MessageIn &msg, const bool haveLength) } void NpcHandler::processNpcCutin(Net::MessageIn &msg A_UNUSED, - const int npcId A_UNUSED) const + const int npcId A_UNUSED) { msg.readString(64); // image name msg.readInt8(); // type } void NpcHandler::processNpcViewPoint(Net::MessageIn &msg A_UNUSED, - const int npcId A_UNUSED) const + const int npcId A_UNUSED) { msg.readInt32(); // type msg.readInt32(); // x diff --git a/src/net/eathena/npchandler.h b/src/net/eathena/npchandler.h index fd565a5ed..8c2f61b55 100644 --- a/src/net/eathena/npchandler.h +++ b/src/net/eathena/npchandler.h @@ -67,9 +67,9 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler int getNpc(Net::MessageIn &msg, const bool haveLength) override final; - void processNpcCutin(Net::MessageIn &msg, const int npcId) const; + static void processNpcCutin(Net::MessageIn &msg, const int npcId); - void processNpcViewPoint(Net::MessageIn &msg, const int npcId) const; + static void processNpcViewPoint(Net::MessageIn &msg, const int npcId); }; } // namespace EAthena diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 54b4322d0..f4305f280 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -223,7 +223,7 @@ void PlayerHandler::updateStatus(const uint8_t status) const outMsg.writeInt8(0); } -void PlayerHandler::processPlayerShortcuts(Net::MessageIn &msg) const +void PlayerHandler::processPlayerShortcuts(Net::MessageIn &msg) { for (int f = 0; f < 27; f ++) { @@ -233,7 +233,7 @@ void PlayerHandler::processPlayerShortcuts(Net::MessageIn &msg) const } } -void PlayerHandler::processPlayerShowEquip(Net::MessageIn &msg) const +void PlayerHandler::processPlayerShowEquip(Net::MessageIn &msg) { msg.readInt8(); // show equip } diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index ee7bd1e39..087c42973 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -53,8 +53,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler void changeAction(const Being::Action &action) const override final; void updateStatus(const uint8_t status) const override final; - void processPlayerShortcuts(Net::MessageIn &msg) const; - void processPlayerShowEquip(Net::MessageIn &msg) const; + static void processPlayerShortcuts(Net::MessageIn &msg); + static void processPlayerShowEquip(Net::MessageIn &msg); void requestOnlineList() const override final; void respawn() const override final; -- cgit v1.2.3-70-g09d2