From 86abf3a682b424dc0fcbccf030f5a0b9bfb81d8c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 7 Aug 2021 09:24:46 +0200 Subject: 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 --- UnoControls/inc/basecontainercontrol.hxx | 3 ++- UnoControls/inc/multiplexer.hxx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'UnoControls/inc') diff --git a/UnoControls/inc/basecontainercontrol.hxx b/UnoControls/inc/basecontainercontrol.hxx index fe0d87f2d8cb..507dd2be394a 100644 --- a/UnoControls/inc/basecontainercontrol.hxx +++ b/UnoControls/inc/basecontainercontrol.hxx @@ -24,6 +24,7 @@ #include "basecontrol.hxx" #include +#include namespace unocontrols { @@ -144,7 +145,7 @@ private: // list of pointer of "struct IMPL_ControlInfo" to hold child-controls ::std::vector< IMPL_ControlInfo > maControlInfoList; - ::cppu::OMultiTypeInterfaceContainerHelper m_aListeners; + comphelper::OMultiTypeInterfaceContainerHelper2 m_aListeners; }; diff --git a/UnoControls/inc/multiplexer.hxx b/UnoControls/inc/multiplexer.hxx index 3fc19c126114..58bd1563fb0a 100644 --- a/UnoControls/inc/multiplexer.hxx +++ b/UnoControls/inc/multiplexer.hxx @@ -28,7 +28,7 @@ #include #include #include -#include +#include namespace com::sun::star::awt { class XWindow; } namespace com::sun::star::awt { struct KeyEvent; } @@ -223,7 +223,7 @@ private: ::osl::Mutex m_aMutex; css::uno::Reference< css::awt::XWindow > m_xPeer; /// The source of the events. Normally this is the peer object. css::uno::WeakReference< css::awt::XWindow > m_xControl; - ::cppu::OMultiTypeInterfaceContainerHelper m_aListenerHolder; + comphelper::OMultiTypeInterfaceContainerHelper2 m_aListenerHolder; }; -- cgit