vcl/inc/unx/gtk/gtkdata.hxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 8e7edc8c3620e4f733c1974a288e5a5abd29f87e
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed Jun 29 20:50:47 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Jun 30 08:50:25 2022 +0200

    tdf#137544 std::unordered_set is cheaper here
    
    when the number of on screen elements becomes rather large
    
    Change-Id: I5185c2d23db733c1587eb78108f69f31e20bd913
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136661
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx
index d084837c4af0..4a7a244800aa 100644
--- a/vcl/inc/unx/gtk/gtkdata.hxx
+++ b/vcl/inc/unx/gtk/gtkdata.hxx
@@ -40,6 +40,7 @@
 #include <o3tl/enumarray.hxx>
 
 #include <string_view>
+#include <unordered_set>
 #include <vector>
 
 namespace com::sun::star::accessibility { class XAccessibleEventListener; }
@@ -221,7 +222,7 @@ class DocumentFocusListener final :
     public ::cppu::WeakImplHelper< 
css::accessibility::XAccessibleEventListener >
 {
 
-    o3tl::sorted_vector< css::uno::Reference< css::uno::XInterface > > 
m_aRefList;
+    std::unordered_set< css::uno::Reference< css::uno::XInterface > > 
m_aRefList;
 
 public:
     /// @throws lang::IndexOutOfBoundsException

Reply via email to