summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/configuration.cpp6
-rw-r--r--src/utils/xml.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index cbe392f45..fcc6bfbdf 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -800,7 +800,7 @@ void ConfigurationObject::writeToXML(const XmlTextWriterPtr writer)
XmlTextWriterStartElement(writer, "option");
XmlTextWriterWriteAttribute(writer, "name", i->first.c_str());
XmlTextWriterWriteAttribute(writer, "value", i->second.c_str());
- xmlTextWriterEndElement(writer);
+ XmlTextWriterEndElement(writer);
}
for (std::map<std::string, ConfigurationList>::const_iterator
@@ -818,10 +818,10 @@ void ConfigurationObject::writeToXML(const XmlTextWriterPtr writer)
XmlTextWriterStartElement(writer, name);
if (*elt_it)
(*elt_it)->writeToXML(writer);
- xmlTextWriterEndElement(writer);
+ XmlTextWriterEndElement(writer);
}
- xmlTextWriterEndElement(writer);
+ XmlTextWriterEndElement(writer);
}
}
diff --git a/src/utils/xml.h b/src/utils/xml.h
index 778159d86..60c1c94c4 100644
--- a/src/utils/xml.h
+++ b/src/utils/xml.h
@@ -47,6 +47,7 @@
reinterpret_cast<const xmlChar*>(name))
#define XmlTextWriterStartElement(writer, name) \
xmlTextWriterStartElement(writer, reinterpret_cast<const xmlChar*>(name))
+#define XmlTextWriterEndElement(writer) xmlTextWriterEndElement(writer)
#define XmlTextWriterWriteAttribute(writer, name, content) \
xmlTextWriterWriteAttribute(writer, \
reinterpret_cast<const xmlChar*>(name), \