summaryrefslogtreecommitdiff
path: root/src/statuseffect.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-10 23:35:30 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-10 23:35:30 +0100
commit8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618 (patch)
tree3588c5990b6e5d6a0616442cb5bb4a4a76daff65 /src/statuseffect.cpp
parentfadc53015b35b6b51313fb1c1debea82e85b8110 (diff)
downloadmana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.tar.gz
mana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.tar.bz2
mana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.tar.xz
mana-8712ce09e8f3a86dcf2f6c8ee7d030e3b41a4618.zip
Use string::empty() instead of comparing to ""
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r--src/statuseffect.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp
index 8872fd7b..7a50e794 100644
--- a/src/statuseffect.cpp
+++ b/src/statuseffect.cpp
@@ -39,19 +39,19 @@ StatusEffect::~StatusEffect()
void StatusEffect::playSFX()
{
- if (mSFXEffect != "")
+ if (!mSFXEffect.empty())
sound.playSfx(mSFXEffect);
}
void StatusEffect::deliverMessage()
{
- if (mMessage != "")
+ if (!mMessage.empty())
chatWindow->chatLog(mMessage, BY_SERVER);
}
Particle *StatusEffect::getParticle()
{
- if (mParticleEffect == "")
+ if (mParticleEffect.empty())
return NULL;
else
return particleEngine->addEffect(mParticleEffect, 0, 0);
@@ -59,7 +59,7 @@ Particle *StatusEffect::getParticle()
AnimatedSprite *StatusEffect::getIcon()
{
- if (mIcon == "")
+ if (mIcon.empty())
return NULL;
else {
AnimatedSprite *sprite = AnimatedSprite::load(
@@ -74,7 +74,7 @@ AnimatedSprite *StatusEffect::getIcon()
SpriteAction StatusEffect::getAction()
{
- if (mAction == "")
+ if (mAction.empty())
return ACTION_INVALID;
else
return SpriteDef::makeSpriteAction(mAction);