diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-10 15:48:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-10 15:48:22 +0300 |
commit | 13670eefeb4b256c20b603a845eb89f5221a32e5 (patch) | |
tree | 7a49048dd2693284789a23dd2a97aaa593b0ae5c /src/resources | |
parent | 99c02724d193dbd6219c4ce036c43795d6562047 (diff) | |
download | mv-13670eefeb4b256c20b603a845eb89f5221a32e5.tar.gz mv-13670eefeb4b256c20b603a845eb89f5221a32e5.tar.bz2 mv-13670eefeb4b256c20b603a845eb89f5221a32e5.tar.xz mv-13670eefeb4b256c20b603a845eb89f5221a32e5.zip |
Change empty strings initializations.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/iteminfo.cpp | 2 | ||||
-rw-r--r-- | src/resources/spritedef.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 75e6e1d8c..a5b81081c 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -108,7 +108,7 @@ const std::string &ItemInfo::getSprite(Gender gender) const } else { - static const std::string empty = ""; + static const std::string empty(""); std::map<int, std::string>::const_iterator i = mAnimationFiles.find(gender); diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h index ccad62b1b..b2939fca1 100644 --- a/src/resources/spritedef.h +++ b/src/resources/spritedef.h @@ -86,7 +86,7 @@ namespace SpriteAction static const std::string CAST_MAGIC = "magic"; static const std::string USE_ITEM = "item"; static const std::string SPAWN = "spawn"; - static const std::string INVALID = ""; + static const std::string INVALID(""); } enum SpriteDirection |