From 1dab21b236d76900f3ddd2be32f9590aef394c2d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 2 Oct 2012 20:41:01 +0300 Subject: Remove most C casts. --- src/resources/emotedb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resources/emotedb.cpp') 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( - spriteNode->xmlChildrenNode->content); + + std::string(reinterpret_cast( + 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( - spriteNode->xmlChildrenNode->content); + + std::string(reinterpret_cast( + spriteNode->xmlChildrenNode->content)); currentSprite->sprite = AnimatedSprite::load(file, XML::getProperty(spriteNode, "variant", 0)); currentSprite->name = XML::langProperty( -- cgit v1.2.3-70-g09d2