From 36ba43d6ea38062b17f7e63ef659962bfc51c64d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Jun 2017 23:34:34 +0300 Subject: Fix clang-tidy check readability-implicit-bool-cast. --- src/gui/dialogsmanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/dialogsmanager.cpp') 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) -- cgit v1.2.3-70-g09d2