From 4466a6a4b4c39dc91c2b37b0368a83c8e83e197f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 17:33:22 +0300 Subject: fix const in declatations in npchandler. --- src/net/ea/npchandler.h | 6 +++--- src/net/eathena/npchandler.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h index 21fd35629..f67e9b3f3 100644 --- a/src/net/ea/npchandler.h +++ b/src/net/ea/npchandler.h @@ -36,12 +36,12 @@ class NpcHandler : public Net::NpcHandler public: A_DELETE_COPY(NpcHandler) - void sendLetter(int npcId, const std::string &recipient, + void sendLetter(const int npcId, const std::string &recipient, const std::string &text) const override; - void startShopping(int beingId) const override; + void startShopping(const int beingId) const override; - void endShopping(int beingId) const override; + void endShopping(const int beingId) const override; virtual int getNpc(Net::MessageIn &msg, bool haveLength) A_WARN_UNUSED = 0; diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 05d6bb0b1..a1ea47d8a 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, - int npcId A_UNUSED) const + const int npcId A_UNUSED) const { msg.readString(64); // image name msg.readInt8(); // type } void NpcHandler::processNpcViewPoint(Net::MessageIn &msg A_UNUSED, - int npcId A_UNUSED) const + const int npcId A_UNUSED) const { msg.readInt32(); // type msg.readInt32(); // x -- cgit v1.2.3-70-g09d2