diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-12-01 21:30:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-12-04 12:00:48 +0100 |
commit | 5aac0725c79d21dba11c03d3c39ccb986a5e7cca (patch) | |
tree | db4949b23a28ae6b767feb354810d48f670b63cc /linguistic | |
parent | a14b4e1d8a6ae8af24feb0e29b75d0e8996f974e (diff) |
use OMultiTypeInterfaceContainerHelperVar3 in LinguProps
Change-Id: If996b6de42d12bd336c941bd7b63e5ce39e582fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126338
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngopt.cxx | 6 | ||||
-rw-r--r-- | linguistic/source/lngopt.hxx | 4 |
2 files changed, 5 insertions, 5 deletions
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 : |