diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-01 10:53:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-01 19:14:40 +0200 |
commit | 34617c92805bc413dc464cdadf8ed17861a95f75 (patch) | |
tree | 03bf0d737d1da0d07356ea556a98d74ed068b36f /unoxml | |
parent | fa759359587808f5e74217e558ee3dd9143710f7 (diff) |
unordered_map is better when using pointers as keys
Change-Id: I0d423dc2cafb3f7cbd41fd884ada252a86b8da86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119812
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/document.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unoxml/source/dom/document.hxx b/unoxml/source/dom/document.hxx index a26da7fcd169..0f2fda8b0d81 100644 --- a/unoxml/source/dom/document.hxx +++ b/unoxml/source/dom/document.hxx @@ -21,7 +21,7 @@ #include <set> #include <memory> -#include <map> +#include <unordered_map> #include <libxml/tree.h> @@ -80,7 +80,7 @@ namespace DOM listenerlist_t m_streamListeners; css::uno::Reference< css::io::XOutputStream > m_rOutputStream; - typedef std::map< const xmlNodePtr, + typedef std::unordered_map< xmlNodePtr, ::std::pair< css::uno::WeakReference<css::xml::dom::XNode>, CNode* > > nodemap_t; nodemap_t m_NodeMap; |