package/inc/zipfileaccess.hxx               |    4 ++--
 package/source/xstor/ocompinstream.cxx      |    2 +-
 package/source/xstor/ocompinstream.hxx      |    4 ++--
 package/source/zippackage/zipfileaccess.cxx |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 1a122a5bce95bb0e6f5c776abd10c0288b48e126
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Thu Nov 25 22:07:31 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Nov 27 13:56:43 2021 +0100

    use more OInterfaceContainerHelper3 in package
    
    Change-Id: I4a9f0f4ae95ec236ef32462c1aaa8d774be15378
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125938
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/package/inc/zipfileaccess.hxx b/package/inc/zipfileaccess.hxx
index b1ca8b1871bb..ae795665b0bd 100644
--- a/package/inc/zipfileaccess.hxx
+++ b/package/inc/zipfileaccess.hxx
@@ -28,7 +28,7 @@
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <com/sun/star/container/XNameAccess.hpp>
 
-#include <comphelper/interfacecontainer2.hxx>
+#include <comphelper/interfacecontainer3.hxx>
 #include <comphelper/refcountedmutex.hxx>
 #include <cppuhelper/implbase.hxx>
 
@@ -48,7 +48,7 @@ class OZipFileAccess final : public ::cppu::WeakImplHelper<
     css::uno::Reference< css::uno::XComponentContext > m_xContext;
     css::uno::Reference< css::io::XInputStream > m_xContentStream;
     std::optional<ZipFile> m_pZipFile;
-    std::unique_ptr<::comphelper::OInterfaceContainerHelper2> 
m_pListenersContainer;
+    
std::unique_ptr<::comphelper::OInterfaceContainerHelper3<css::lang::XEventListener>>
 m_pListenersContainer;
     bool m_bDisposed;
     bool m_bOwnContent;
 
diff --git a/package/source/xstor/ocompinstream.cxx 
b/package/source/xstor/ocompinstream.cxx
index 783b426a9af7..7f59275f491d 100644
--- a/package/source/xstor/ocompinstream.cxx
+++ b/package/source/xstor/ocompinstream.cxx
@@ -244,7 +244,7 @@ void SAL_CALL OInputCompStream::addEventListener( const 
uno::Reference< lang::XE
     }
 
     if ( !m_pInterfaceContainer )
-        m_pInterfaceContainer.reset( new 
::comphelper::OInterfaceContainerHelper2( m_xMutex->GetMutex() ) );
+        m_pInterfaceContainer.reset( new 
::comphelper::OInterfaceContainerHelper3<css::lang::XEventListener>( 
m_xMutex->GetMutex() ) );
 
     m_pInterfaceContainer->addInterface( xListener );
 }
diff --git a/package/source/xstor/ocompinstream.hxx 
b/package/source/xstor/ocompinstream.hxx
index c41c2c25f40a..438f38631108 100644
--- a/package/source/xstor/ocompinstream.hxx
+++ b/package/source/xstor/ocompinstream.hxx
@@ -28,7 +28,7 @@
 #include <com/sun/star/embed/XExtendedStorageStream.hpp>
 #include <com/sun/star/embed/XRelationshipAccess.hpp>
 #include <cppuhelper/implbase.hxx>
-#include <comphelper/interfacecontainer2.hxx>
+#include <comphelper/interfacecontainer3.hxx>
 #include <comphelper/refcountedmutex.hxx>
 #include <rtl/ref.hxx>
 #include <memory>
@@ -45,7 +45,7 @@ protected:
     OWriteStream_Impl* m_pImpl;
     rtl::Reference<comphelper::RefCountedMutex> m_xMutex;
     css::uno::Reference < css::io::XInputStream > m_xStream;
-    std::unique_ptr<::comphelper::OInterfaceContainerHelper2> 
m_pInterfaceContainer;
+    
std::unique_ptr<::comphelper::OInterfaceContainerHelper3<css::lang::XEventListener>>
 m_pInterfaceContainer;
     css::uno::Sequence < css::beans::PropertyValue > m_aProperties;
     bool m_bDisposed;
     sal_Int32 m_nStorageType;
diff --git a/package/source/zippackage/zipfileaccess.cxx 
b/package/source/zippackage/zipfileaccess.cxx
index 1e66e67936b0..a02d416286f1 100644
--- a/package/source/zippackage/zipfileaccess.cxx
+++ b/package/source/zippackage/zipfileaccess.cxx
@@ -438,7 +438,7 @@ void SAL_CALL OZipFileAccess::addEventListener( const 
uno::Reference< lang::XEve
         throw lang::DisposedException(THROW_WHERE );
 
     if ( !m_pListenersContainer )
-        m_pListenersContainer.reset( new 
::comphelper::OInterfaceContainerHelper2( m_aMutexHolder->GetMutex() ) );
+        m_pListenersContainer.reset( new 
::comphelper::OInterfaceContainerHelper3<css::lang::XEventListener>( 
m_aMutexHolder->GetMutex() ) );
     m_pListenersContainer->addInterface( xListener );
 }
 

Reply via email to