summaryrefslogtreecommitdiff
path: root/src/net/ea/charserverrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-14 16:40:47 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-14 16:40:47 +0300
commitb8b4e4c524331b4deb0a6caa8da004430297c98a (patch)
treea2fd6f1db45e76f08c0e5c1b4e57bbb86efba57b /src/net/ea/charserverrecv.cpp
parentc28cd5ffb1ca37a3a6d5ee0a73828dcd092db7f1 (diff)
downloadmv-b8b4e4c524331b4deb0a6caa8da004430297c98a.tar.gz
mv-b8b4e4c524331b4deb0a6caa8da004430297c98a.tar.bz2
mv-b8b4e4c524331b4deb0a6caa8da004430297c98a.tar.xz
mv-b8b4e4c524331b4deb0a6caa8da004430297c98a.zip
Replace static members usage from pointers to direct classes.
clang-tidy warning: readability-static-accessed-through-instance
Diffstat (limited to 'src/net/ea/charserverrecv.cpp')
-rw-r--r--src/net/ea/charserverrecv.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/net/ea/charserverrecv.cpp b/src/net/ea/charserverrecv.cpp
index 7f27a6d2e..d058dfe6d 100644
--- a/src/net/ea/charserverrecv.cpp
+++ b/src/net/ea/charserverrecv.cpp
@@ -111,20 +111,20 @@ void CharServerRecv::processCharCreateFailed(Net::MessageIn &msg)
ShowCenter_true,
nullptr,
260);
- if (charServerHandler->mCharCreateDialog != nullptr)
- charServerHandler->mCharCreateDialog->unlock();
+ if (Net::CharServerHandler::mCharCreateDialog != nullptr)
+ Net::CharServerHandler::mCharCreateDialog->unlock();
BLOCK_END("CharServerRecv::processCharCreateFailed")
}
void CharServerRecv::processCharDelete(Net::MessageIn &msg A_UNUSED)
{
BLOCK_START("CharServerRecv::processCharDelete")
- delete charServerHandler->mSelectedCharacter;
- charServerHandler->mCharacters.remove(
- charServerHandler->mSelectedCharacter);
- charServerHandler->mSelectedCharacter = nullptr;
- charServerHandler->updateCharSelectDialog();
- charServerHandler->unlockCharSelectDialog();
+ delete Net::CharServerHandler::mSelectedCharacter;
+ Net::CharServerHandler::mCharacters.remove(
+ Net::CharServerHandler::mSelectedCharacter);
+ Net::CharServerHandler::mSelectedCharacter = nullptr;
+ Net::CharServerHandler::updateCharSelectDialog();
+ Net::CharServerHandler::unlockCharSelectDialog();
CREATEWIDGET(OkDialog,
// TRANSLATORS: info message header
_("Info"),