diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-19 22:26:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-19 22:26:08 +0300 |
commit | 858d471f921c75d3963acff3dd3022b47c96f5dd (patch) | |
tree | a8dcb57ff8a0c963beedf8e0b4a5649c68f8880b /src/utils/xml.h | |
parent | 3d6211f4d5e744622c8e55ef31b42cf066a32da0 (diff) | |
download | mv-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.gz mv-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.bz2 mv-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.xz mv-858d471f921c75d3963acff3dd3022b47c96f5dd.zip |
Add tests for xml macroses.
Diffstat (limited to 'src/utils/xml.h')
-rw-r--r-- | src/utils/xml.h | 4 |
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) \ |