summaryrefslogtreecommitdiff
path: root/src/net/tmwa/generalhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-20 23:58:09 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-20 23:58:09 +0300
commit954d4527558bbf797fd0389b0400fb05963ff96b (patch)
treeec90371d34f88b3e22e9d65ad71d349ee53f62fe /src/net/tmwa/generalhandler.cpp
parent7d606d7dd9708c9c382d1f8eba5fed9becdfd3d5 (diff)
downloadplus-954d4527558bbf797fd0389b0400fb05963ff96b.tar.gz
plus-954d4527558bbf797fd0389b0400fb05963ff96b.tar.bz2
plus-954d4527558bbf797fd0389b0400fb05963ff96b.tar.xz
plus-954d4527558bbf797fd0389b0400fb05963ff96b.zip
Add some more missing consts.
Diffstat (limited to 'src/net/tmwa/generalhandler.cpp')
-rw-r--r--src/net/tmwa/generalhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index bc6029a94..10b5cf5f2 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -153,14 +153,14 @@ void GeneralHandler::load() const
Network::mInstance->registerHandlers();
}
-void GeneralHandler::reload()
+void GeneralHandler::reload() const
{
if (Network::mInstance)
Network::mInstance->disconnect();
static_cast<LoginHandler*>(mLoginHandler)->clearWorlds();
- CharServerHandler *const charHandler = static_cast<CharServerHandler*>(
- mCharServerHandler);
+ const CharServerHandler *const charHandler =
+ static_cast<CharServerHandler*>(mCharServerHandler);
charHandler->setCharCreateDialog(nullptr);
charHandler->setCharSelectDialog(nullptr);
static_cast<PartyHandler*>(mPartyHandler)->reload();
@@ -171,7 +171,7 @@ void GeneralHandler::reloadPartially() const
static_cast<PartyHandler*>(mPartyHandler)->reload();
}
-void GeneralHandler::unload()
+void GeneralHandler::unload() const
{
clearHandlers();
}