summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.h
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/mapreader.h
parent34f943198afd1f7f342d63bd70d30cdeacd3dbad (diff)
downloadmv-b293d99a34d21d137374e46386b8669907cb3c1d.tar.gz
mv-b293d99a34d21d137374e46386b8669907cb3c1d.tar.bz2
mv-b293d99a34d21d137374e46386b8669907cb3c1d.tar.xz
mv-b293d99a34d21d137374e46386b8669907cb3c1d.zip
add missing const in xmlnode pointers.
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r--src/resources/mapreader.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/resources/mapreader.h b/src/resources/mapreader.h
index 3573fcc89..4f84f1a1a 100644
--- a/src/resources/mapreader.h
+++ b/src/resources/mapreader.h
@@ -52,7 +52,7 @@ class MapReader final
* Read an XML map from a parsed XML tree. The path is used to find the
* location of referenced tileset images.
*/
- static Map *readMap(XmlNodePtr node,
+ static Map *readMap(XmlNodePtrConst node,
const std::string &path) A_WARN_UNUSED;
static Map *createEmptyMap(const std::string &restrict filename,
@@ -67,7 +67,7 @@ class MapReader final
* @param props The Properties instance to which the properties will
* be assigned.
*/
- static void readProperties(const XmlNodePtr node,
+ static void readProperties(const XmlNodePtrConst node,
Properties *const props);
/**
@@ -75,7 +75,8 @@ class MapReader final
*/
static void readLayer(const XmlNodePtr node, Map *const map);
- static bool readBase64Layer(const XmlNodePtr childNode, Map *const map,
+ static bool readBase64Layer(const XmlNodePtrConst childNode,
+ Map *const map,
MapLayer *const layer,
const MapLayer::Type &layerType,
MapHeights *const heights,
@@ -83,7 +84,8 @@ class MapReader final
int &restrict x, int &restrict y,
const int w, const int h);
- static bool readCsvLayer(const XmlNodePtr childNode, Map *const map,
+ static bool readCsvLayer(const XmlNodePtrConst childNode,
+ Map *const map,
MapLayer *const layer,
const MapLayer::Type &layerType,
MapHeights *const heights,
@@ -93,7 +95,8 @@ class MapReader final
/**
* Reads a tile set.
*/
- static Tileset *readTileset(XmlNodePtr node, const std::string &path,
+ static Tileset *readTileset(XmlNodePtr node,
+ const std::string &path,
Map *const map) A_WARN_UNUSED;
static void updateMusic(Map *const map);