From 34617c92805bc413dc464cdadf8ed17861a95f75 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 1 Aug 2021 10:53:03 +0200 Subject: 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 --- unoxml/source/dom/document.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unoxml') 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 #include -#include +#include #include @@ -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, CNode* > > nodemap_t; nodemap_t m_NodeMap; -- cgit