summaryrefslogtreecommitdiffstats
path: root/src/Util/Xml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util/Xml.cpp')
-rw-r--r--src/Util/Xml.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Util/Xml.cpp b/src/Util/Xml.cpp
index 5dac26a..0339b45 100644
--- a/src/Util/Xml.cpp
+++ b/src/Util/Xml.cpp
@@ -25,15 +25,15 @@ namespace Util {
xmlpp::Element* Xml::addSibling(xmlpp::Node *previous, const Glib::ustring &name) {
if(!previous)
- return NULL;
+ return 0;
- xmlNodePtr child = xmlNewNode(NULL, (const xmlChar*)name.c_str());
+ xmlNodePtr child = xmlNewNode(0, (const xmlChar*)name.c_str());
if(!child)
- return NULL;
+ return 0;
xmlNodePtr node = xmlAddNextSibling(previous->cobj(), child);
if(!node)
- return NULL;
+ return 0;
return static_cast<xmlpp::Element*>(node->_private);
}