summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-19 17:55:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-19 17:55:52 +0300
commitfa378412565f98a1ce6d438425ca34b20aaf223a (patch)
tree34bf055f2b179b9d49cbe5cabd646173737a053a /src/net/eathena
parent2ef04505f91aa7bb1629ac294e9f166280961510 (diff)
downloadplus-fa378412565f98a1ce6d438425ca34b20aaf223a.tar.gz
plus-fa378412565f98a1ce6d438425ca34b20aaf223a.tar.bz2
plus-fa378412565f98a1ce6d438425ca34b20aaf223a.tar.xz
plus-fa378412565f98a1ce6d438425ca34b20aaf223a.zip
Add static in tradehandler.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/tradehandler.cpp6
-rw-r--r--src/net/eathena/tradehandler.h6
2 files changed, 6 insertions, 6 deletions
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);