summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-18 00:47:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-18 00:47:37 +0300
commit13358aab4dfcf636a2ef0905dd16e7045848d15c (patch)
treea9b03946a30b804f244a5147be3341df38318f02 /src/resources/mapreader.h
parentd949db27719aeb5724e03536f7e86721bb78d78e (diff)
downloadmanaverse-13358aab4dfcf636a2ef0905dd16e7045848d15c.tar.gz
manaverse-13358aab4dfcf636a2ef0905dd16e7045848d15c.tar.bz2
manaverse-13358aab4dfcf636a2ef0905dd16e7045848d15c.tar.xz
manaverse-13358aab4dfcf636a2ef0905dd16e7045848d15c.zip
add restrict into mapreader.
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r--src/resources/mapreader.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/resources/mapreader.h b/src/resources/mapreader.h
index 343dd9958..e6a5597e1 100644
--- a/src/resources/mapreader.h
+++ b/src/resources/mapreader.h
@@ -44,8 +44,9 @@ class MapReader final
/**
* Read an XML map from a file.
*/
- static Map *readMap(const std::string &filename,
- const std::string &realFilename) A_WARN_UNUSED;
+ static Map *readMap(const std::string &restrict filename,
+ const std::string &restrict realFilename)
+ A_WARN_UNUSED;
/**
* Read an XML map from a parsed XML tree. The path is used to find the
@@ -54,8 +55,8 @@ class MapReader final
static Map *readMap(XmlNodePtr node,
const std::string &path) A_WARN_UNUSED;
- static Map *createEmptyMap(const std::string &filename,
- const std::string &realFilename)
+ static Map *createEmptyMap(const std::string &restrict filename,
+ const std::string &restrict realFilename)
A_WARN_UNUSED;
private:
@@ -79,13 +80,15 @@ class MapReader final
const MapLayer::Type &layerType,
MapHeights *const heights,
const std::string &compression,
- int &x, int &y, const int w, const int h);
+ int &restrict x, int &restrict y,
+ const int w, const int h);
static bool readCsvLayer(const XmlNodePtr childNode, Map *const map,
MapLayer *const layer,
const MapLayer::Type &layerType,
MapHeights *const heights,
- int &x, int &y, const int w, const int h);
+ int &restrict x, int &restrict y,
+ const int w, const int h);
/**
* Reads a tile set.