diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-29 12:40:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-29 17:15:50 +0200 |
commit | c89b7f4a31298360e14663f3c192e4e832759a1f (patch) | |
tree | a02c1bdffdbd48740b2e0f361ad489d2f44e9eab /sfx2/source/view | |
parent | 8dfde7d69a8bbdc8ce88aefded231b94e30271d6 (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |