diff options
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/messagehandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/messagehandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/network.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/network.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/net/tmwa/messagehandler.cpp b/src/net/tmwa/messagehandler.cpp index 6de8ea645..66aa36e56 100644 --- a/src/net/tmwa/messagehandler.cpp +++ b/src/net/tmwa/messagehandler.cpp @@ -43,7 +43,7 @@ MessageHandler::~MessageHandler() mNetwork->unregisterHandler(this); } -void MessageHandler::setNetwork(Network *network) +void MessageHandler::setNetwork(Network *const network) { assert(!(network && mNetwork)); mNetwork = network; diff --git a/src/net/tmwa/messagehandler.h b/src/net/tmwa/messagehandler.h index 578926478..e012f7a8a 100644 --- a/src/net/tmwa/messagehandler.h +++ b/src/net/tmwa/messagehandler.h @@ -46,7 +46,7 @@ class MessageHandler : public Net::MessageHandler ~MessageHandler(); - void setNetwork(Network *network); + void setNetwork(Network *const network); protected: Network *mNetwork; diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index 73288d4d1..a843c9b6b 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -102,7 +102,7 @@ Network::~Network() mInstance = nullptr; } -void Network::registerHandler(MessageHandler *handler) +void Network::registerHandler(MessageHandler *const handler) { if (!handler) return; @@ -113,7 +113,7 @@ void Network::registerHandler(MessageHandler *handler) handler->setNetwork(this); } -void Network::unregisterHandler(MessageHandler *handler) +void Network::unregisterHandler(MessageHandler *const handler) { if (!handler) return; diff --git a/src/net/tmwa/network.h b/src/net/tmwa/network.h index 9d2e49183..7e007742c 100644 --- a/src/net/tmwa/network.h +++ b/src/net/tmwa/network.h @@ -46,9 +46,9 @@ class Network final : public Ea::Network ~Network(); - void registerHandler(MessageHandler *handler); + void registerHandler(MessageHandler *const handler); - void unregisterHandler(MessageHandler *handler); + void unregisterHandler(MessageHandler *const handler); void clearHandlers(); |