diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-07 09:24:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-07 21:34:33 +0200 |
commit | 86abf3a682b424dc0fcbccf030f5a0b9bfb81d8c (patch) | |
tree | ba40de884231f604bbd8eedb610834d92afb86ae /sw/source/core/unocore/unoidx.cxx | |
parent | 2cd1442f83d41af1f2b663ccb8bfab6a954009f1 (diff) |
create comphelper::OMultiTypeInterfaceContainerHelper2 and use it
based on OInterfaceContainerHelper2 which is considerably
faster than the original OInterfaceContainerHelper
Change-Id: I9c8b6d0e5382018824bf7188a26343703abf2d51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120161
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore/unoidx.cxx')
-rw-r--r-- | sw/source/core/unocore/unoidx.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx index 1b6f8d7fb166..b71d108b9cf6 100644 --- a/sw/source/core/unocore/unoidx.cxx +++ b/sw/source/core/unocore/unoidx.cxx @@ -33,6 +33,7 @@ #include <osl/mutex.hxx> #include <cppuhelper/interfacecontainer.h> #include <comphelper/interfacecontainer2.hxx> +#include <comphelper/multicontainer2.hxx> #include <cppuhelper/supportsservice.hxx> #include <tools/UnitConversion.hxx> #include <vcl/svapp.hxx> @@ -295,7 +296,7 @@ private: public: uno::WeakReference<uno::XInterface> m_wThis; - ::cppu::OMultiTypeInterfaceContainerHelper m_Listeners; + ::comphelper::OMultiTypeInterfaceContainerHelper2 m_Listeners; SfxItemPropertySet const& m_rPropSet; const TOXTypes m_eTOXType; bool m_bIsDescriptor; @@ -1263,7 +1264,7 @@ void SAL_CALL SwXDocumentIndex::refresh() pTOXBase->UpdatePageNum(); } - ::cppu::OInterfaceContainerHelper *const pContainer( + ::comphelper::OInterfaceContainerHelper2 *const pContainer( m_pImpl->m_Listeners.getContainer( cppu::UnoType<util::XRefreshListener>::get())); if (pContainer) |