diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-29 20:50:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-30 08:50:25 +0200 |
commit | 8e7edc8c3620e4f733c1974a288e5a5abd29f87e (patch) | |
tree | 97cd6653146174e1892f420c1cc59852e1dd8a25 /vcl | |
parent | cb41db23a044e6e6337bad642aad2c49174aa068 (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/unx/gtk/gtkdata.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 |