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/dialogsmanager.cpp | |
parent | f1518dd8476c968a43fa57cfb06198e290a4f77a (diff) | |
download | mv-36ba43d6ea38062b17f7e63ef659962bfc51c64d.tar.gz mv-36ba43d6ea38062b17f7e63ef659962bfc51c64d.tar.bz2 mv-36ba43d6ea38062b17f7e63ef659962bfc51c64d.tar.xz mv-36ba43d6ea38062b17f7e63ef659962bfc51c64d.zip |
Fix clang-tidy check readability-implicit-bool-cast.
Diffstat (limited to 'src/gui/dialogsmanager.cpp')
-rw-r--r-- | src/gui/dialogsmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp index b4a3cc6ea..9b2335736 100644 --- a/src/gui/dialogsmanager.cpp +++ b/src/gui/dialogsmanager.cpp @@ -82,11 +82,11 @@ void DialogsManager::closeDialogs() BuySellDialog::closeAll(); NpcDialog::closeAll(); SellDialog::closeAll(); - if (inventoryHandler) + if (inventoryHandler != nullptr) inventoryHandler->destroyStorage(); #endif // DYECMD - if (deathNotice) + if (deathNotice != nullptr) { deathNotice->scheduleDelete(); deathNotice = nullptr; @@ -139,7 +139,7 @@ Window *DialogsManager::openErrorDialog(const std::string &header, void DialogsManager::playerDeath() { #ifndef DYECMD - if (!deathNotice) + if (deathNotice == nullptr) { CREATEWIDGETV(deathNotice, OkDialog, // TRANSLATORS: message header @@ -164,7 +164,7 @@ void DialogsManager::attributeChanged(const AttributesT id, { if (id == Attributes::TOTAL_WEIGHT) { - if (!weightNotice && config.getBoolValue("weightMsg")) + if ((weightNotice == nullptr) && config.getBoolValue("weightMsg")) { int percent = settings.overweightPercent; if (percent < 1) |