diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-06 23:34:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-07 19:23:40 +0300 |
commit | 36ba43d6ea38062b17f7e63ef659962bfc51c64d (patch) | |
tree | 190156cb88b13a38a6d13c69ee0742cc078065a1 /src/gui/popupmanager.cpp | |
parent | f1518dd8476c968a43fa57cfb06198e290a4f77a (diff) | |
download | ManaVerse-36ba43d6ea38062b17f7e63ef659962bfc51c64d.tar.gz ManaVerse-36ba43d6ea38062b17f7e63ef659962bfc51c64d.tar.bz2 ManaVerse-36ba43d6ea38062b17f7e63ef659962bfc51c64d.tar.xz ManaVerse-36ba43d6ea38062b17f7e63ef659962bfc51c64d.zip |
Fix clang-tidy check readability-implicit-bool-cast.
Diffstat (limited to 'src/gui/popupmanager.cpp')
-rw-r--r-- | src/gui/popupmanager.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/popupmanager.cpp b/src/gui/popupmanager.cpp index 5a9c2809b..c415956ce 100644 --- a/src/gui/popupmanager.cpp +++ b/src/gui/popupmanager.cpp @@ -43,7 +43,7 @@ PopupManager::~PopupManager() void PopupManager::closePopupMenu() { #ifndef DYECMD - if (popupMenu) + if (popupMenu != nullptr) popupMenu->handleLink("cancel", nullptr); #endif // DYECMD } @@ -51,21 +51,21 @@ void PopupManager::closePopupMenu() void PopupManager::hideBeingPopup() { #ifndef DYECMD - if (beingPopup) + if (beingPopup != nullptr) beingPopup->setVisible(Visible_false); #endif // DYECMD } void PopupManager::hideTextPopup() { - if (textPopup) + if (textPopup != nullptr) textPopup->setVisible(Visible_false); } void PopupManager::hidePopupMenu() { #ifndef DYECMD - if (popupMenu) + if (popupMenu != nullptr) popupMenu->setVisible(Visible_false); #endif // DYECMD } @@ -73,7 +73,7 @@ void PopupManager::hidePopupMenu() bool PopupManager::isPopupMenuVisible() { #ifndef DYECMD - return popupMenu ? popupMenu->isPopupVisible() : false; + return popupMenu != nullptr ? popupMenu->isPopupVisible() : false; #else return false; #endif // DYECMD @@ -82,20 +82,20 @@ bool PopupManager::isPopupMenuVisible() void PopupManager::clearPopup() { #ifndef DYECMD - if (popupMenu) + if (popupMenu != nullptr) popupMenu->clear(); #endif // DYECMD } bool PopupManager::isTextPopupVisible() { - return textPopup ? textPopup->isPopupVisible() : false; + return textPopup != nullptr ? textPopup->isPopupVisible() : false; } bool PopupManager::isBeingPopupVisible() { #ifndef DYECMD - return beingPopup ? beingPopup->isPopupVisible() : false; + return beingPopup != nullptr ? beingPopup->isPopupVisible() : false; #else // DYECMD return false; #endif // DYECMD |