summaryrefslogtreecommitdiff
path: root/src/resources/chardb.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-06-26 01:37:48 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-09-27 18:38:28 +0200
commit51f0c23ac190c83bebeace8a49cd2ecd1143fa8c (patch)
treee45ceab35b6cc419f80be6c86753b6ccd1cd22f0 /src/resources/chardb.cpp
parent632da15234851f3decdbb29cbeb15e1950e41a0d (diff)
downloadmana-51f0c23ac190c83bebeace8a49cd2ecd1143fa8c.tar.gz
mana-51f0c23ac190c83bebeace8a49cd2ecd1143fa8c.tar.bz2
mana-51f0c23ac190c83bebeace8a49cd2ecd1143fa8c.tar.xz
mana-51f0c23ac190c83bebeace8a49cd2ecd1143fa8c.zip
Replaced for_each_xml_child_node macro with helper class
The new XML::Children class enables using a C++11 range-based for loop to iterate over the children of an xmlNodePtr.
Diffstat (limited to 'src/resources/chardb.cpp')
-rw-r--r--src/resources/chardb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/chardb.cpp b/src/resources/chardb.cpp
index 40ecd999..ff0a4749 100644
--- a/src/resources/chardb.cpp
+++ b/src/resources/chardb.cpp
@@ -58,7 +58,7 @@ void CharDB::load()
return;
}
- for_each_xml_child_node(node, root)
+ for (auto node : XML::Children(root))
{
if (xmlStrEqual(node->name, BAD_CAST "haircolor"))
{