summaryrefslogtreecommitdiff
path: root/src/utils/xml.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-19 22:26:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-19 22:26:08 +0300
commit858d471f921c75d3963acff3dd3022b47c96f5dd (patch)
treea8dcb57ff8a0c963beedf8e0b4a5649c68f8880b /src/utils/xml.h
parent3d6211f4d5e744622c8e55ef31b42cf066a32da0 (diff)
downloadManaVerse-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.gz
ManaVerse-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.bz2
ManaVerse-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.xz
ManaVerse-858d471f921c75d3963acff3dd3022b47c96f5dd.zip
Add tests for xml macroses.
Diffstat (limited to 'src/utils/xml.h')
-rw-r--r--src/utils/xml.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/xml.h b/src/utils/xml.h
index 60c1c94c4..fe56917eb 100644
--- a/src/utils/xml.h
+++ b/src/utils/xml.h
@@ -41,8 +41,8 @@
reinterpret_cast<const xmlChar*>(str))
#define XmlTextWriterPtr xmlTextWriterPtr
#define xmlTypeEqual(node, typ) ((node)->type == (typ))
-#define XmlHasProp(node, name) xmlHasProp(node, \
- reinterpret_cast<const xmlChar*>(name))
+#define XmlHasProp(node, name) (xmlHasProp(node, \
+ reinterpret_cast<const xmlChar*>(name)) != nullptr)
#define XmlGetProp(node, name) xmlGetProp(node, \
reinterpret_cast<const xmlChar*>(name))
#define XmlTextWriterStartElement(writer, name) \