use more OInterfaceContainerHelper3 in sot
Change-Id: I4d8fbb90a9850199caa29e97f2080fd49c48bcef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125974 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
9622b62f1b
commit
8d9c479212
@@ -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<css::lang::XEventListener>( m_aMutex );
|
||||
|
||||
m_pListenersContainer->addInterface( xListener );
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <comphelper/interfacecontainer3.hxx>
|
||||
#include <com/sun/star/embed/XOLESimpleStorage.hpp>
|
||||
#include <com/sun/star/lang/XServiceInfo.hpp>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
@@ -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<css::embed::XOLESimpleStora
|
||||
std::unique_ptr<SvStream> m_pStream;
|
||||
std::unique_ptr<BaseStorage> m_pStorage;
|
||||
|
||||
::comphelper::OInterfaceContainerHelper2* m_pListenersContainer; // list of listeners
|
||||
::comphelper::OInterfaceContainerHelper3<css::lang::XEventListener>* m_pListenersContainer; // list of listeners
|
||||
css::uno::Reference<css::uno::XComponentContext> m_xContext;
|
||||
|
||||
bool m_bNoTemporaryCopy;
|
||||
|
||||
Reference in New Issue
Block a user