summaryrefslogtreecommitdiff
path: root/src/utils/xml.cpp
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.cpp
parent3d6211f4d5e744622c8e55ef31b42cf066a32da0 (diff)
downloadplus-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.gz
plus-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.bz2
plus-858d471f921c75d3963acff3dd3022b47c96f5dd.tar.xz
plus-858d471f921c75d3963acff3dd3022b47c96f5dd.zip
Add tests for xml macroses.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r--src/utils/xml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp
index 4dc331c4f..4d7688b1b 100644
--- a/src/utils/xml.cpp
+++ b/src/utils/xml.cpp
@@ -167,7 +167,7 @@ namespace XML
xmlChar *const prop = XmlGetProp(node, name);
if (prop)
{
- ret = atoi(reinterpret_cast<char*>(prop));
+ ret = atoi(reinterpret_cast<const char*>(prop));
xmlFree(prop);
}
@@ -241,7 +241,7 @@ namespace XML
const char *const name,
const bool def)
{
- const xmlChar *const prop = XmlGetProp(node, name);
+ xmlChar *const prop = XmlGetProp(node, name);
if (XmlStrEqual(prop, "true"))
return true;