From 8d9c4792129e3dcf263ffffe39324c94b2ffe2bf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 28 Nov 2021 13:13:44 +0200 Subject: [PATCH] use more OInterfaceContainerHelper3 in sot Change-Id: I4d8fbb90a9850199caa29e97f2080fd49c48bcef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125974 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/unoolestorage/xolesimplestorage.cxx | 2 +- sot/source/unoolestorage/xolesimplestorage.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx index 8ea0907b38e5..565de5a5b63a 100644 --- a/sot/source/unoolestorage/xolesimplestorage.cxx +++ b/sot/source/unoolestorage/xolesimplestorage.cxx @@ -580,7 +580,7 @@ void SAL_CALL OLESimpleStorage::addEventListener( throw lang::DisposedException(); if ( !m_pListenersContainer ) - m_pListenersContainer = new ::comphelper::OInterfaceContainerHelper2( m_aMutex ); + m_pListenersContainer = new ::comphelper::OInterfaceContainerHelper3( m_aMutex ); m_pListenersContainer->addInterface( xListener ); } diff --git a/sot/source/unoolestorage/xolesimplestorage.hxx b/sot/source/unoolestorage/xolesimplestorage.hxx index 2ec9f715d873..765cd87caf12 100644 --- a/sot/source/unoolestorage/xolesimplestorage.hxx +++ b/sot/source/unoolestorage/xolesimplestorage.hxx @@ -24,6 +24,7 @@ #include +#include #include #include #include @@ -35,7 +36,6 @@ namespace com::sun::star::io { class XInputStream; } namespace com::sun::star::io { class XStream; } namespace com::sun::star::lang { class XEventListener; } namespace com::sun::star::uno { class XComponentContext; } -namespace comphelper { class OInterfaceContainerHelper2; } class BaseStorage; class SvStream; @@ -51,7 +51,7 @@ class OLESimpleStorage : public cppu::WeakImplHelper m_pStream; std::unique_ptr m_pStorage; - ::comphelper::OInterfaceContainerHelper2* m_pListenersContainer; // list of listeners + ::comphelper::OInterfaceContainerHelper3* m_pListenersContainer; // list of listeners css::uno::Reference m_xContext; bool m_bNoTemporaryCopy;