summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-11-28 13:13:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-28 18:10:49 +0100
commit8d9c4792129e3dcf263ffffe39324c94b2ffe2bf (patch)
tree886ea730ef921b5a7f3c54be491fb90ed44fa09c /sot
parent9622b62f1bc181f3841f0e730fb212bfd40758b8 (diff)
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>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx2
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.hxx4
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<css::lang::XEventListener>( 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 <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;