summaryrefslogtreecommitdiff
path: root/zenXml/zenxml/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenXml/zenxml/parser.h')
-rw-r--r--zenXml/zenxml/parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/zenXml/zenxml/parser.h b/zenXml/zenxml/parser.h
index a4800ab3..14ccfd60 100644
--- a/zenXml/zenxml/parser.h
+++ b/zenXml/zenxml/parser.h
@@ -206,13 +206,13 @@ void serialize(const XmlElement& element, std::string& stream,
for (auto it = attr.first; it != attr.second; ++it)
stream += ' ' + normalizeName(it->name) + "=\"" + normalizeAttribValue(it->value) + '"';
- auto iterPair = element.getChildren();
- if (iterPair.first != iterPair.second) //structured element
+ auto itPair = element.getChildren();
+ if (itPair.first != itPair.second) //structured element
{
//no support for mixed-mode content
stream += '>' + lineBreak;
- std::for_each(iterPair.first, iterPair.second,
+ std::for_each(itPair.first, itPair.second,
[&](const XmlElement& el) { serialize(el, stream, lineBreak, indent, indentLevel + 1); });
for (size_t i = 0; i < indentLevel; ++i)
bgstack15