summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-18 01:08:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-18 01:08:13 +0300
commit3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4 (patch)
tree94493c6bc48de98a9610333293808f39c1b68ba1 /src/resources
parent10519e881b3635b7189cd4831fdd70c4806b240c (diff)
downloadmanaverse-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.tar.gz
manaverse-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.tar.bz2
manaverse-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.tar.xz
manaverse-3d5c3d9618096e1a5995d7df2bd3e4098b3c5bd4.zip
add restrict into chardb.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/chardb.cpp3
-rw-r--r--src/resources/db/chardb.h3
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;