From 954d4527558bbf797fd0389b0400fb05963ff96b Mon Sep 17 00:00:00 2001 From: Andrei Karas <akaras@inbox.ru> Date: Sat, 20 Feb 2016 23:58:09 +0300 Subject: Add some more missing consts. --- src/net/eathena/generalhandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/eathena/generalhandler.cpp') 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(); } -- cgit v1.2.3-70-g09d2