diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-02 20:41:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-02 20:41:01 +0300 |
commit | 1dab21b236d76900f3ddd2be32f9590aef394c2d (patch) | |
tree | 9ff63d2bf544a440c5d8de41faa401e900898012 /src/resources/emotedb.cpp | |
parent | f4f16b2fd6c455cd38e089a97db374c5ee3ea9fd (diff) | |
download | manaplus-1dab21b236d76900f3ddd2be32f9590aef394c2d.tar.gz manaplus-1dab21b236d76900f3ddd2be32f9590aef394c2d.tar.bz2 manaplus-1dab21b236d76900f3ddd2be32f9590aef394c2d.tar.xz manaplus-1dab21b236d76900f3ddd2be32f9590aef394c2d.zip |
Remove most C casts.
Diffstat (limited to 'src/resources/emotedb.cpp')
-rw-r--r-- | src/resources/emotedb.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp index 14e3a96b5..1098243ac 100644 --- a/src/resources/emotedb.cpp +++ b/src/resources/emotedb.cpp @@ -91,8 +91,8 @@ void EmoteDB::load() { EmoteSprite *const currentSprite = new EmoteSprite; std::string file = paths.getStringValue("sprites") - + (std::string) reinterpret_cast<const char*>( - spriteNode->xmlChildrenNode->content); + + std::string(reinterpret_cast<const char*>( + spriteNode->xmlChildrenNode->content)); currentSprite->sprite = AnimatedSprite::load(file, XML::getProperty(spriteNode, "variant", 0)); currentSprite->name = XML::langProperty( @@ -147,8 +147,8 @@ void EmoteDB::load() { EmoteSprite *const currentSprite = new EmoteSprite; std::string file = paths.getStringValue("sprites") - + (std::string) reinterpret_cast<const char*>( - spriteNode->xmlChildrenNode->content); + + std::string(reinterpret_cast<const char*>( + spriteNode->xmlChildrenNode->content)); currentSprite->sprite = AnimatedSprite::load(file, XML::getProperty(spriteNode, "variant", 0)); currentSprite->name = XML::langProperty( |