diff options
author | B. Stack <bgstack15@gmail.com> | 2022-08-03 12:51:45 +0000 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-08-03 12:51:45 +0000 |
commit | 3f91181f8458cb6a6d95e25123db874875f7b259 (patch) | |
tree | c36c0f0c5fab7aa60432e9e1d32ba5fdfabeb55e /zenXml | |
parent | Merge branch '11.22' into 'master' (diff) | |
parent | add upstream 11.23 (diff) | |
download | FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.tar.gz FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.tar.bz2 FreeFileSync-3f91181f8458cb6a6d95e25123db874875f7b259.zip |
Merge branch 'b11.23' into 'master'11.23
add upstream 11.23
See merge request opensource-tracking/FreeFileSync!46
Diffstat (limited to 'zenXml')
-rw-r--r-- | zenXml/zenxml/dom.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/zenXml/zenxml/dom.h b/zenXml/zenxml/dom.h index 7a551f69..427e89f2 100644 --- a/zenXml/zenxml/dom.h +++ b/zenXml/zenxml/dom.h @@ -159,8 +159,8 @@ public: T& objectRef(const IterTy& it) const { return *(it->second); } }; - using ChildIter2 = PtrIter<std::unordered_multimap<std::string, XmlElement*>::iterator, XmlElement, AccessMapElement>; - using ChildIterConst2 = PtrIter<std::unordered_multimap<std::string, XmlElement*>::const_iterator, const XmlElement, AccessMapElement>; + using ChildIter2 = PtrIter<std::multimap<std::string, XmlElement*>::iterator, XmlElement, AccessMapElement>; + using ChildIterConst2 = PtrIter<std::multimap<std::string, XmlElement*>::const_iterator, const XmlElement, AccessMapElement>; ///Access all child elements with the given name via STL iterators. /** @@ -249,7 +249,10 @@ private: std::unordered_map<std::string, std::list<Attribute>::iterator> attributesByName; //alternate view for lookup std::list<XmlElement> childElements_; //child elements in order of creation - std::unordered_multimap<std::string, XmlElement*> childElementsByName_; //alternate view for lookup + std::multimap<std::string, XmlElement*> childElementsByName_; //alternate view for lookup + //alternative: std::unordered_map => but let's keep std::map, so which guarantees consistent order of duplicate items! + //e.g. std::unordered_map on Linux inserts duplicates in reverse! + XmlElement* parent_ = nullptr; }; |