diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-16 01:47:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-16 01:47:17 +0300 |
commit | b293d99a34d21d137374e46386b8669907cb3c1d (patch) | |
tree | 7e5e20e2b81e239878c13229c4d02139e8b85c2b /src/resources/db/colordb.cpp | |
parent | 34f943198afd1f7f342d63bd70d30cdeacd3dbad (diff) | |
download | plus-b293d99a34d21d137374e46386b8669907cb3c1d.tar.gz plus-b293d99a34d21d137374e46386b8669907cb3c1d.tar.bz2 plus-b293d99a34d21d137374e46386b8669907cb3c1d.tar.xz plus-b293d99a34d21d137374e46386b8669907cb3c1d.zip |
add missing const in xmlnode pointers.
Diffstat (limited to 'src/resources/db/colordb.cpp')
-rw-r--r-- | src/resources/db/colordb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/db/colordb.cpp b/src/resources/db/colordb.cpp index 34e0614c0..1236a35f1 100644 --- a/src/resources/db/colordb.cpp +++ b/src/resources/db/colordb.cpp @@ -78,7 +78,7 @@ void ColorDB::loadHair(const std::string &fileName, std::map<int, ItemColor> &colors) { XML::Document *doc = new XML::Document(fileName); - XmlNodePtr root = doc->rootNode(); + XmlNodePtrConst root = doc->rootNode(); if (!root || !xmlNameEqual(root, "colors")) { @@ -116,7 +116,7 @@ void ColorDB::loadHair(const std::string &fileName, void ColorDB::loadColorLists(const std::string &fileName) { XML::Document *doc = new XML::Document(fileName); - const XmlNodePtr root = doc->rootNode(); + const XmlNodePtrConst root = doc->rootNode(); if (!root) { delete doc; |