diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popupmanager.cpp | 2 | ||||
-rw-r--r-- | src/gui/windowmanager.cpp | 4 | ||||
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/statuswindow.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/popupmanager.cpp b/src/gui/popupmanager.cpp index 3aed639e9..134aaac7b 100644 --- a/src/gui/popupmanager.cpp +++ b/src/gui/popupmanager.cpp @@ -76,7 +76,7 @@ void PopupManager::hidePopupMenu() void PopupManager::hideItemPopup() { #ifndef DYECMD - if (itemPopup) + if (itemPopup != nullptr) itemPopup->hide(); #endif // DYECMD } diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index 978e6ae42..ab4224f25 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -133,7 +133,7 @@ void WindowManager::createWindows() CREATEWIDGETV0(spellPopup, SpellPopup); CREATEWIDGETV0(skillPopup, SkillPopup); delete2(debugChatTab); - if (chatWindow) + if (chatWindow != nullptr) { chatWindow->scheduleDelete(); chatWindow = nullptr; @@ -145,7 +145,7 @@ void WindowManager::createWindows() "#Debug", ChatTabType::DEBUG); debugChatTab->setAllowHighlight(false); chatWindow->setVisible(Visible_false); - if (debugWindow) + if (debugWindow != nullptr) { debugWindow->scheduleDelete(); debugWindow = nullptr; diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 0c7123631..7992c6262 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -670,7 +670,7 @@ void ChatWindow::chatInput(const std::string &message) const if (tab != nullptr) tab->chatInput(msg); Game *const game = Game::instance(); - if (game) + if (game != nullptr) game->setValidSpeed(); } diff --git a/src/gui/windows/statuswindow.cpp b/src/gui/windows/statuswindow.cpp index 3dc7110b9..520bdefd0 100644 --- a/src/gui/windows/statuswindow.cpp +++ b/src/gui/windows/statuswindow.cpp @@ -260,7 +260,7 @@ void StatusWindow::addTabBasic(const std::string &name) void StatusWindow::updateLevelLabel() { - if (!localPlayer) + if (localPlayer != nullptr) return; const int groupId = localPlayer->getGroupId(); |