linguistic/source/lngopt.cxx |    6 +++---
 linguistic/source/lngopt.hxx |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 5aac0725c79d21dba11c03d3c39ccb986a5e7cca
Author:     Noel Grandin <[email protected]>
AuthorDate: Wed Dec 1 21:30:45 2021 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Sat Dec 4 12:00:48 2021 +0100

    use OMultiTypeInterfaceContainerHelperVar3 in LinguProps
    
    Change-Id: If996b6de42d12bd336c941bd7b63e5ce39e582fc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126338
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx
index 517117306a86..f176735f37cf 100644
--- a/linguistic/source/lngopt.cxx
+++ b/linguistic/source/lngopt.cxx
@@ -192,14 +192,14 @@ LinguProps::LinguProps() :
 
 void LinguProps::launchEvent( const PropertyChangeEvent &rEvt ) const
 {
-    comphelper::OInterfaceContainerHelper2 *pContainer =
+    comphelper::OInterfaceContainerHelper3<XPropertyChangeListener> 
*pContainer =
             aPropListeners.getContainer( rEvt.PropertyHandle );
     if (pContainer)
     {
-        comphelper::OInterfaceIteratorHelper2 aIt( *pContainer );
+        comphelper::OInterfaceIteratorHelper3 aIt( *pContainer );
         while (aIt.hasMoreElements())
         {
-            static_cast< XPropertyChangeListener* >( aIt.next() 
)->propertyChange( rEvt );
+            aIt.next()->propertyChange( rEvt );
         }
     }
 }
diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx
index effd2e8cb790..b21ea631cc19 100644
--- a/linguistic/source/lngopt.hxx
+++ b/linguistic/source/lngopt.hxx
@@ -23,7 +23,7 @@
 #include <cppuhelper/implbase.hxx>
 #include <cppuhelper/interfacecontainer.hxx>
 #include <comphelper/interfacecontainer3.hxx>
-#include <comphelper/multiinterfacecontainer2.hxx>
+#include <comphelper/multiinterfacecontainer3.hxx>
 #include <com/sun/star/beans/XFastPropertySet.hpp>
 #include <com/sun/star/beans/XPropertyAccess.hpp>
 #include <com/sun/star/lang/XServiceInfo.hpp>
@@ -60,7 +60,7 @@ public:
             GetActiveDics() const   { return pData->aActiveDics; }
 };
 
-typedef comphelper::OMultiTypeInterfaceContainerHelperVar2<sal_Int32>
+typedef 
comphelper::OMultiTypeInterfaceContainerHelperVar3<css::beans::XPropertyChangeListener,
 sal_Int32>
     OPropertyListenerContainerHelper;
 
 class LinguProps :

Reply via email to