[Libreoffice-commits] core.git: unoxml/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Sun Aug 1 17:15:15 UTC 2021
unoxml/source/dom/document.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 34617c92805bc413dc464cdadf8ed17861a95f75
Author: Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Sun Aug 1 10:53:03 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Aug 1 19:14:40 2021 +0200
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list