summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-18 17:17:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-18 17:17:59 +0300
commitb257d71a41b0662db3b954e44ba9bfca2fb6c6cc (patch)
tree7d4f6b5a62e036da845fbd2fcfc4c02384faaaba
parent65411e9bb86d97e33dce3f445f66faca178e35d2 (diff)
downloadmanaverse-b257d71a41b0662db3b954e44ba9bfca2fb6c6cc.tar.gz
manaverse-b257d71a41b0662db3b954e44ba9bfca2fb6c6cc.tar.bz2
manaverse-b257d71a41b0662db3b954e44ba9bfca2fb6c6cc.tar.xz
manaverse-b257d71a41b0662db3b954e44ba9bfca2fb6c6cc.zip
Add macro XmlTextWriterEndElement.
-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), \