summaryrefslogtreecommitdiff
path: root/src/resources/spritedef.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-16 01:47:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-16 01:47:17 +0300
commitb293d99a34d21d137374e46386b8669907cb3c1d (patch)
tree7e5e20e2b81e239878c13229c4d02139e8b85c2b /src/resources/spritedef.cpp
parent34f943198afd1f7f342d63bd70d30cdeacd3dbad (diff)
downloadmanaplus-b293d99a34d21d137374e46386b8669907cb3c1d.tar.gz
manaplus-b293d99a34d21d137374e46386b8669907cb3c1d.tar.bz2
manaplus-b293d99a34d21d137374e46386b8669907cb3c1d.tar.xz
manaplus-b293d99a34d21d137374e46386b8669907cb3c1d.zip
add missing const in xmlnode pointers.
Diffstat (limited to 'src/resources/spritedef.cpp')
-rw-r--r--src/resources/spritedef.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index 9970063c8..e37aa1aa8 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -85,7 +85,7 @@ SpriteDef *SpriteDef::load(const std::string &animationFile,
palettes = animationFile.substr(pos + 1);
XML::Document doc(animationFile.substr(0, pos));
- XmlNodePtr rootNode = doc.rootNode();
+ XmlNodePtrConst rootNode = doc.rootNode();
if (!rootNode || !xmlNameEqual(rootNode, "sprite"))
{
@@ -225,7 +225,8 @@ void SpriteDef::loadImageSet(const XmlNodePtr node,
mImageSets[name] = imageSet;
}
-void SpriteDef::loadAction(const XmlNodePtr node, const int variant_offset)
+void SpriteDef::loadAction(const XmlNodePtr node,
+ const int variant_offset)
{
const std::string actionName = XML::getProperty(node, "name", "");
const std::string imageSetName = XML::getProperty(node, "imageset", "");