From c67e6db61c4abc0f63221ef324408080a6ebf4f1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 1 Dec 2021 19:05:00 +0200 Subject: use OMultiTypeInterfaceContainerHelperVar3 in SbaXPropertyChangeMultiplexer Change-Id: I744a3e5a7c7f4172bd4619647fb6decc6cd8e132 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126195 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/inc/sbamultiplex.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dbaccess/source/ui/inc/sbamultiplex.hxx') diff --git a/dbaccess/source/ui/inc/sbamultiplex.hxx b/dbaccess/source/ui/inc/sbamultiplex.hxx index 87d31c88dc2b..a3af5d5e0af3 100644 --- a/dbaccess/source/ui/inc/sbamultiplex.hxx +++ b/dbaccess/source/ui/inc/sbamultiplex.hxx @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -226,7 +227,7 @@ namespace dbaui :public OSbaWeakSubObject ,public css::beans::XPropertyChangeListener { - typedef ::comphelper::OMultiTypeInterfaceContainerHelperVar2 ListenerContainerMap; + typedef ::comphelper::OMultiTypeInterfaceContainerHelperVar3 ListenerContainerMap; ListenerContainerMap m_aListeners; public: @@ -239,18 +240,18 @@ namespace dbaui virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent& e) override; - void addInterface(const OUString& rName, const css::uno::Reference< css::uno::XInterface >& rListener); - void removeInterface(const OUString& rName, const css::uno::Reference< css::uno::XInterface >& rListener); + void addInterface(const OUString& rName, const css::uno::Reference< css::beans::XPropertyChangeListener >& rListener); + void removeInterface(const OUString& rName, const css::uno::Reference< css::beans::XPropertyChangeListener >& rListener); void disposeAndClear(); sal_Int32 getOverallLen() const; - ::comphelper::OInterfaceContainerHelper2* getContainer(const OUString& rName) + ::comphelper::OInterfaceContainerHelper3* getContainer(const OUString& rName) { return m_aListeners.getContainer(rName); } private: - void Notify(::comphelper::OInterfaceContainerHelper2& rListeners, const css::beans::PropertyChangeEvent& e); + void Notify(::comphelper::OInterfaceContainerHelper3& rListeners, const css::beans::PropertyChangeEvent& e); }; // css::beans::XVetoableChangeListener -- cgit