svl/source/fsstor/fsstorage.cxx | 2 +- svl/source/fsstor/fsstorage.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit 786edb0fd0588147c58b3fbad1d936f0b2a26c6e Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Nov 28 13:17:30 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Nov 28 18:11:10 2021 +0100 use more OInterfaceContainerHelper3 in svl Change-Id: I93443f87fe9b68157cc9a126f2c31f917a016a1c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125975 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index 91e2e4c49ba2..9056b782d3b3 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -887,7 +887,7 @@ void SAL_CALL FSStorage::addEventListener( ::osl::MutexGuard aGuard( m_aMutex ); if ( !m_pListenersContainer ) - m_pListenersContainer.reset(new ::comphelper::OInterfaceContainerHelper2( m_aMutex )); + m_pListenersContainer.reset(new ::comphelper::OInterfaceContainerHelper3<css::lang::XEventListener>( m_aMutex )); m_pListenersContainer->addInterface( xListener ); } diff --git a/svl/source/fsstor/fsstorage.hxx b/svl/source/fsstor/fsstorage.hxx index 800d7d577489..2b0b7bc78c44 100644 --- a/svl/source/fsstor/fsstorage.hxx +++ b/svl/source/fsstor/fsstorage.hxx @@ -27,7 +27,7 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/lang/XTypeProvider.hpp> #include <com/sun/star/uno/XComponentContext.hpp> -#include <comphelper/interfacecontainer2.hxx> +#include <comphelper/interfacecontainer3.hxx> #include <cppuhelper/weak.hxx> #include <ucbhelper/content.hxx> @@ -42,7 +42,7 @@ class FSStorage : public css::lang::XTypeProvider OUString m_aURL; ::ucbhelper::Content m_aContent; sal_Int32 m_nMode; - std::unique_ptr<::comphelper::OInterfaceContainerHelper2> m_pListenersContainer; // list of listeners + std::unique_ptr<::comphelper::OInterfaceContainerHelper3<css::lang::XEventListener>> m_pListenersContainer; // list of listeners css::uno::Reference< css::uno::XComponentContext > m_xContext; public: