From fa378412565f98a1ce6d438425ca34b20aaf223a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Oct 2014 17:55:52 +0300 Subject: Add static in tradehandler. --- src/net/eathena/tradehandler.cpp | 6 +++--- src/net/eathena/tradehandler.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp index ef38a4e67..a183b70a6 100644 --- a/src/net/eathena/tradehandler.cpp +++ b/src/net/eathena/tradehandler.cpp @@ -163,7 +163,7 @@ void TradeHandler::cancel() const createOutPacket(CMSG_TRADE_CANCEL_REQUEST); } -void TradeHandler::processTradeRequest(Net::MessageIn &msg) const +void TradeHandler::processTradeRequest(Net::MessageIn &msg) { const std::string &partner = msg.readString(24, "name"); msg.readInt32("char id"); @@ -171,7 +171,7 @@ void TradeHandler::processTradeRequest(Net::MessageIn &msg) const processTradeRequestContinue(partner); } -void TradeHandler::processTradeResponse2(Net::MessageIn &msg) const +void TradeHandler::processTradeResponse2(Net::MessageIn &msg) { const uint8_t type = msg.readUInt8("type"); msg.readInt32("char id"); @@ -239,7 +239,7 @@ void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg) } } -void TradeHandler::processTradeUndo(Net::MessageIn &msg A_UNUSED) const +void TradeHandler::processTradeUndo(Net::MessageIn &msg A_UNUSED) { // +++ here need clear trade window from partner side? } diff --git a/src/net/eathena/tradehandler.h b/src/net/eathena/tradehandler.h index bdeebc91e..ca444ba31 100644 --- a/src/net/eathena/tradehandler.h +++ b/src/net/eathena/tradehandler.h @@ -55,11 +55,11 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler void cancel() const override final; protected: - void processTradeRequest(Net::MessageIn &msg) const; + static void processTradeRequest(Net::MessageIn &msg); - void processTradeResponse2(Net::MessageIn &msg) const; + static void processTradeResponse2(Net::MessageIn &msg); - void processTradeUndo(Net::MessageIn &msg) const; + static void processTradeUndo(Net::MessageIn &msg); static void processTradeItemAdd(Net::MessageIn &msg); -- cgit v1.2.3-70-g09d2