diff options
author | B. Stack <bgstack15@gmail.com> | 2022-08-03 08:51:28 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-08-03 08:51:28 -0400 |
commit | 94e0c9205e6049c6b3295145af7fd39156e77543 (patch) | |
tree | c36c0f0c5fab7aa60432e9e1d32ba5fdfabeb55e /zenXml/zenxml/dom.h | |
parent | Merge branch '11.22' into 'master' (diff) | |
download | FreeFileSync-94e0c9205e6049c6b3295145af7fd39156e77543.tar.gz FreeFileSync-94e0c9205e6049c6b3295145af7fd39156e77543.tar.bz2 FreeFileSync-94e0c9205e6049c6b3295145af7fd39156e77543.zip |
add upstream 11.23
Diffstat (limited to 'zenXml/zenxml/dom.h')
-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; }; |