diff options
author | B Stack <bgstack15@gmail.com> | 2021-04-05 11:02:07 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-04-05 11:02:07 -0400 |
commit | 74361d859354e4416285cd803b1b0075be1fe514 (patch) | |
tree | dafb5e266c513a5ed9863401e62d246742861e0c /zenXml/zenxml/parser.h | |
parent | Merge branch '11.7' into 'master' (diff) | |
download | FreeFileSync-74361d859354e4416285cd803b1b0075be1fe514.tar.gz FreeFileSync-74361d859354e4416285cd803b1b0075be1fe514.tar.bz2 FreeFileSync-74361d859354e4416285cd803b1b0075be1fe514.zip |
add upstream 11.9
Diffstat (limited to 'zenXml/zenxml/parser.h')
-rw-r--r-- | zenXml/zenxml/parser.h | 6 |
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) |