diff options
author | B. Stack <bgstack15@gmail.com> | 2021-04-05 15:59:11 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-04-05 15:59:11 +0000 |
commit | 8d28254d708c88ae4aaebbc82cbb6c91726aa390 (patch) | |
tree | dafb5e266c513a5ed9863401e62d246742861e0c /zenXml/zenxml/parser.h | |
parent | Merge branch '11.7' into 'master' (diff) | |
parent | add upstream 11.9 (diff) | |
download | FreeFileSync-8d28254d708c88ae4aaebbc82cbb6c91726aa390.tar.gz FreeFileSync-8d28254d708c88ae4aaebbc82cbb6c91726aa390.tar.bz2 FreeFileSync-8d28254d708c88ae4aaebbc82cbb6c91726aa390.zip |
Merge branch '11.9' into 'master'11.9
add upstream 11.9
See merge request opensource-tracking/FreeFileSync!32
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) |