sfx2/source/view/viewsh.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit c89b7f4a31298360e14663f3c192e4e832759a1f Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Thu Jun 29 12:40:42 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Jun 29 17:15:50 2023 +0200 set->unordered_set which is more efficient, and we don't need ordering here Change-Id: I1af4412d94680f4449a2eb00168f6c4cef20bd06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153741 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index acdfd3d8f9dd..0d7d7f14ff99 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -107,6 +107,7 @@ #include <libxml/xmlwriter.h> #include <toolkit/awt/vclxmenu.hxx> #include <unordered_map> +#include <unordered_set> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -242,7 +243,7 @@ class LOKDocumentFocusListener : static constexpr sal_Int64 MAX_ATTACHABLE_CHILDREN = 30; const SfxViewShell* m_pViewShell; - std::set< uno::Reference< uno::XInterface > > m_aRefList; + std::unordered_set< uno::Reference< uno::XInterface > > m_aRefList; OUString m_sFocusedParagraph; bool m_bFocusedParagraphNotified; sal_Int32 m_nCaretPosition;