diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-18 21:52:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-18 21:52:15 +0300 |
commit | 78744020528ef6231e1606bbe2e8c53011c77935 (patch) | |
tree | 3055821a8dabab37c660fdc3b99309f970158b69 /src/net/eathena | |
parent | c0d5142d1ed98b62ad87603fa9d2620dce256bd7 (diff) | |
download | mv-78744020528ef6231e1606bbe2e8c53011c77935.tar.gz mv-78744020528ef6231e1606bbe2e8c53011c77935.tar.bz2 mv-78744020528ef6231e1606bbe2e8c53011c77935.tar.xz mv-78744020528ef6231e1606bbe2e8c53011c77935.zip |
add const to net classes.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/messagehandler.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/messagehandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/network.cpp | 4 | ||||
-rw-r--r-- | src/net/eathena/network.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/net/eathena/messagehandler.cpp b/src/net/eathena/messagehandler.cpp index bf7753e4f..222c86390 100644 --- a/src/net/eathena/messagehandler.cpp +++ b/src/net/eathena/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/eathena/messagehandler.h b/src/net/eathena/messagehandler.h index bc67f3246..ade96baba 100644 --- a/src/net/eathena/messagehandler.h +++ b/src/net/eathena/messagehandler.h @@ -44,7 +44,7 @@ class MessageHandler : public Net::MessageHandler ~MessageHandler(); - void setNetwork(Network *network); + void setNetwork(Network *const network); protected: Network *mNetwork; diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp index 24c3a70fa..4786d9ee7 100644 --- a/src/net/eathena/network.cpp +++ b/src/net/eathena/network.cpp @@ -124,7 +124,7 @@ Network::~Network() mInstance = nullptr; } -void Network::registerHandler(MessageHandler *handler) +void Network::registerHandler(MessageHandler *const handler) { if (!handler) return; @@ -135,7 +135,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/eathena/network.h b/src/net/eathena/network.h index 041c9889a..01caad450 100644 --- a/src/net/eathena/network.h +++ b/src/net/eathena/network.h @@ -45,9 +45,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(); |