summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-10 21:06:33 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-10 21:06:33 +0300
commit5edddb1313ed0dc275e6ae70b8a1780ded3a590d (patch)
treefffa478013e8f3622c4e7f85eeb71609cb352322 /src/utils
parenta057817a0983b3a3190f6773101f788f2c6278ba (diff)
downloadmanaverse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.tar.gz
manaverse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.tar.bz2
manaverse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.tar.xz
manaverse-5edddb1313ed0dc275e6ae70b8a1780ded3a590d.zip
Replace xmlStrEqual to xmlNameEqual.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/xml.cpp2
-rw-r--r--src/utils/xml.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp
index 9d6858d9d..420915d8f 100644
--- a/src/utils/xml.cpp
+++ b/src/utils/xml.cpp
@@ -163,7 +163,7 @@ namespace XML
{
for_each_xml_child_node(child, parent)
{
- if (xmlStrEqual(child->name, BAD_CAST name))
+ if (xmlNameEqual(child, name))
return child;
}
diff --git a/src/utils/xml.h b/src/utils/xml.h
index fac90c63d..821ee2de4 100644
--- a/src/utils/xml.h
+++ b/src/utils/xml.h
@@ -31,6 +31,8 @@
#define XmlNodePtr xmlNodePtr
+#define xmlNameEqual(node, str) xmlStrEqual((node)->name, BAD_CAST (str))
+
/**
* XML helper functions.
*/