summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.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/resources/spritedef.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/resources/spritedef.cpp')
-rw-r--r--src/resources/spritedef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index af3281be..20c79e73 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -321,7 +321,7 @@ SpriteDef::~SpriteDef()
SpriteAction SpriteDef::makeSpriteAction(const std::string &action)
{
- if (action == "" || action == "default") {
+ if (action.empty() || action == "default") {
return ACTION_DEFAULT;
}
if (action == "stand") {
@@ -373,7 +373,7 @@ SpriteAction SpriteDef::makeSpriteAction(const std::string &action)
SpriteDirection SpriteDef::makeSpriteDirection(const std::string& direction)
{
- if (direction == "" || direction == "default") {
+ if (direction.empty() || direction == "default") {
return DIRECTION_DEFAULT;
}
else if (direction == "up") {