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.cpp | |
parent | 3d6211f4d5e744622c8e55ef31b42cf066a32da0 (diff) | |
download | plus-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.cpp | 4 |
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; |