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/statuseffect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/statuseffect.cpp') diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp index 4a26fc78c..e46852a23 100644 --- a/src/statuseffect.cpp +++ b/src/statuseffect.cpp @@ -64,13 +64,13 @@ void StatusEffect::playSFX() const void StatusEffect::deliverMessage() const { - if (!mMessage.empty() && localChatTab) + if (!mMessage.empty() && (localChatTab != nullptr)) localChatTab->chatLog(mMessage, ChatMsgType::BY_SERVER); } Particle *StatusEffect::getStartParticle() const { - if (!particleEngine || mStartParticleEffect.empty()) + if ((particleEngine == nullptr) || mStartParticleEffect.empty()) return nullptr; else return particleEngine->addEffect(mStartParticleEffect, 0, 0); @@ -78,7 +78,7 @@ Particle *StatusEffect::getStartParticle() const Particle *StatusEffect::getParticle() const { - if (!particleEngine || mParticleEffect.empty()) + if ((particleEngine == nullptr) || mParticleEffect.empty()) return nullptr; else return particleEngine->addEffect(mParticleEffect, 0, 0); -- cgit v1.2.3-70-g09d2