diff options
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/chathandler.h | 3 | ||||
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/generalhandler.h | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h index 1cee20774..eae168e59 100644 --- a/src/net/tmwa/chathandler.h +++ b/src/net/tmwa/chathandler.h @@ -42,7 +42,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler void handleMessage(Net::MessageIn &msg) override; - void talk(const std::string &text, const std::string &channel) const override; + void talk(const std::string &text, + const std::string &channel) const override; void talkRaw(const std::string &text) const override; diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index b1a555d4f..1d4d5274f 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -199,14 +199,14 @@ void GeneralHandler::reload() mNetwork->disconnect(); static_cast<LoginHandler*>(mLoginHandler.get())->clearWorlds(); - CharServerHandler *charHandler = static_cast<CharServerHandler*>( + CharServerHandler *const charHandler = static_cast<CharServerHandler*>( mCharServerHandler.get()); charHandler->setCharCreateDialog(nullptr); charHandler->setCharSelectDialog(nullptr); static_cast<PartyHandler*>(mPartyHandler.get())->reload(); } -void GeneralHandler::reloadPartially() +void GeneralHandler::reloadPartially() const { static_cast<PartyHandler*>(mPartyHandler.get())->reload(); } diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h index c25b7e7a3..57f704074 100644 --- a/src/net/tmwa/generalhandler.h +++ b/src/net/tmwa/generalhandler.h @@ -55,7 +55,7 @@ class GeneralHandler final : public MessageHandler, void clearHandlers() override; - void reloadPartially() override; + void reloadPartially() const override; void gameStarted() const override; |