summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-08-07 18:17:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-08 17:04:03 +0200
commit9104017e1bf76857d2b9686363013e1e7c49e355 (patch)
tree949e30187049ed6d177405c8261b206a9b9088e2 /linguistic
parent5e69c5fbdb44cd782080e7f4d9ad89dc48b2d1b1 (diff)
create comphelper:OMultiTypeInterfaceContainerHelperVar2 and use it
based on OInterfaceContainerHelper2 which is considerably faster than the original OInterfaceContainerHelper Change-Id: Ia8cdbc5ef877a7af3d9193e1bb2faf1595c15470 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120165 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngopt.cxx4
-rw-r--r--linguistic/source/lngopt.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx
index 304675fd413c..8ddbac6ca9e2 100644
--- a/linguistic/source/lngopt.cxx
+++ b/linguistic/source/lngopt.cxx
@@ -192,11 +192,11 @@ LinguProps::LinguProps() :
void LinguProps::launchEvent( const PropertyChangeEvent &rEvt ) const
{
- cppu::OInterfaceContainerHelper *pContainer =
+ comphelper::OInterfaceContainerHelper2 *pContainer =
aPropListeners.getContainer( rEvt.PropertyHandle );
if (pContainer)
{
- cppu::OInterfaceIteratorHelper aIt( *pContainer );
+ comphelper::OInterfaceIteratorHelper2 aIt( *pContainer );
while (aIt.hasMoreElements())
{
static_cast< XPropertyChangeListener* >( aIt.next() )->propertyChange( rEvt );
diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx
index bdb173c22da0..bd2e2fe72dcd 100644
--- a/linguistic/source/lngopt.hxx
+++ b/linguistic/source/lngopt.hxx
@@ -22,7 +22,7 @@
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/interfacecontainer.hxx>
-#include <comphelper/interfacecontainer2.hxx>
+#include <comphelper/multiinterfacecontainer2.hxx>
#include <com/sun/star/beans/XFastPropertySet.hpp>
#include <com/sun/star/beans/XPropertyAccess.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -59,7 +59,7 @@ public:
GetActiveDics() const { return pData->aActiveDics; }
};
-typedef cppu::OMultiTypeInterfaceContainerHelperVar<sal_Int32>
+typedef comphelper::OMultiTypeInterfaceContainerHelperVar2<sal_Int32>
OPropertyListenerContainerHelper;
class LinguProps :