summaryrefslogtreecommitdiff
path: root/src/net/eathena/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/eathena/generalhandler.cpp
parent7d606d7dd9708c9c382d1f8eba5fed9becdfd3d5 (diff)
downloadmv-954d4527558bbf797fd0389b0400fb05963ff96b.tar.gz
mv-954d4527558bbf797fd0389b0400fb05963ff96b.tar.bz2
mv-954d4527558bbf797fd0389b0400fb05963ff96b.tar.xz
mv-954d4527558bbf797fd0389b0400fb05963ff96b.zip
Add some more missing consts.
Diffstat (limited to 'src/net/eathena/generalhandler.cpp')
-rw-r--r--src/net/eathena/generalhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index 5d9bb790b..0cc91b297 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -146,14 +146,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();
@@ -164,7 +164,7 @@ void GeneralHandler::reloadPartially() const
static_cast<PartyHandler*>(mPartyHandler)->reload();
}
-void GeneralHandler::unload()
+void GeneralHandler::unload() const
{
clearHandlers();
}