diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-11-28 13:17:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-28 18:11:10 +0100 |
commit | 786edb0fd0588147c58b3fbad1d936f0b2a26c6e (patch) | |
tree | f815b23aea0a0c7dd9b22efcfceb733114793b2e /svl | |
parent | ba8e7113fa8172533be736a25f936fc52f96e6a4 (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/fsstor/fsstorage.cxx | 2 | ||||
-rw-r--r-- | svl/source/fsstor/fsstorage.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
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: |