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/itemsoundmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/itemsoundmanager.cpp') diff --git a/src/itemsoundmanager.cpp b/src/itemsoundmanager.cpp index b44445787..060cd2392 100644 --- a/src/itemsoundmanager.cpp +++ b/src/itemsoundmanager.cpp @@ -34,7 +34,7 @@ void ItemSoundManager::playSfx(const Item *const item, const ItemSoundEvent::Type sound) { - if (!item) + if (item == nullptr) return; playSfx(item->getId(), sound); } @@ -48,7 +48,7 @@ void ItemSoundManager::playSfx(const int itemId, void ItemSoundManager::playSfx(const FloorItem *const item, const ItemSoundEvent::Type sound) { - if (!item) + if (item == nullptr) return; playSfx(ItemDB::get(item->getItemId()), sound); } -- cgit v1.2.3-70-g09d2