From a3ecadac89eafbacd0c6b3764d5977bcac242c57 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Feb 2013 23:30:25 +0300 Subject: const and other minor changes in commands.cpp --- src/net/tmwa/tradehandler.cpp | 2 +- src/net/tmwa/tradehandler.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp index 12ff23daf..a05f28401 100644 --- a/src/net/tmwa/tradehandler.cpp +++ b/src/net/tmwa/tradehandler.cpp @@ -95,7 +95,7 @@ void TradeHandler::handleMessage(Net::MessageIn &msg) BLOCK_END("TradeHandler::handleMessage") } -void TradeHandler::request(Being *being) +void TradeHandler::request(const Being *const being) { if (!being) return; diff --git a/src/net/tmwa/tradehandler.h b/src/net/tmwa/tradehandler.h index d96d325a6..dfa5840b0 100644 --- a/src/net/tmwa/tradehandler.h +++ b/src/net/tmwa/tradehandler.h @@ -42,7 +42,7 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler void handleMessage(Net::MessageIn &msg); - void request(Being *being); + void request(const Being *const being); void respond(bool accept); -- cgit v1.2.3-70-g09d2