diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-18 01:08:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-18 01:08:13 +0300 |
commit | 3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4 (patch) | |
tree | 94493c6bc48de98a9610333293808f39c1b68ba1 /src/resources/db | |
parent | 10519e881b3635b7189cd4831fdd70c4806b240c (diff) | |
download | manaplus-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.tar.gz manaplus-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.tar.bz2 manaplus-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.tar.xz manaplus-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.zip |
add restrict into chardb.
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/chardb.cpp | 3 | ||||
-rw-r--r-- | src/resources/db/chardb.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/chardb.cpp b/src/resources/db/chardb.cpp index 1c2e0ec82..f97dd9b3b 100644 --- a/src/resources/db/chardb.cpp +++ b/src/resources/db/chardb.cpp @@ -91,7 +91,8 @@ void CharDB::load() } void CharDB::loadMinMax(const XmlNodePtr node, - unsigned *const min, unsigned *const max) + unsigned *restrict const min, + unsigned *restrict const max) { *min = XML::getProperty(node, "min", 1); *max = XML::getProperty(node, "max", 10); diff --git a/src/resources/db/chardb.h b/src/resources/db/chardb.h index ea51e7358..8edefe8a1 100644 --- a/src/resources/db/chardb.h +++ b/src/resources/db/chardb.h @@ -42,7 +42,8 @@ namespace CharDB void unload(); void loadMinMax(const XmlNodePtr node, - unsigned *const min, unsigned *const max); + unsigned *restrict const min, + unsigned *restrict const max); unsigned getMinHairColor() A_WARN_UNUSED; |