diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-14 19:10:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-14 19:10:55 +0300 |
commit | 8660f14a94af91d42d3c8aae1b370f47cad9720b (patch) | |
tree | 777b5782c3c6e97c575c7ca9a54d2ef55d2d07b1 /src/gui/windowmanager.cpp | |
parent | 1d3e44a5d4e50d18e614a888c6cd3b8cccdf7da4 (diff) | |
download | mv-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.gz mv-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.bz2 mv-8660f14a94af91d42d3c8aae1b370f47cad9720b.tar.xz mv-8660f14a94af91d42d3c8aae1b370f47cad9720b.zip |
Fix some pointer to bool conversions.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |