From 13358aab4dfcf636a2ef0905dd16e7045848d15c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Dec 2013 00:47:37 +0300 Subject: add restrict into mapreader. --- src/resources/mapreader.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/resources/mapreader.h') 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. -- cgit v1.2.3-60-g2f50