summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-19 19:45:45 +0200
committerNoel Grandin <noel@peralex.com>2016-01-25 08:52:03 +0200
commit752cd07d085ac0aadc99bd512d49072843139032 (patch)
tree21ff2f55761b34bfdd721b5e1ed43333e8874e46 /svl/source
parent0e7cd653ea90da388820220bf6a3eb140b57bbd6 (diff)
InterfaceContainer2 with vector instead of Sequence
create an InterfaceContainer2 class to replace InterfaceContainer. It uses a std::vector instead of a Sequence for the mutable listener list, which provides far better performance. Switch all our internal use-sites to the new class. Change-Id: I6b56cfa511ded2395faa22e68fab3b2f16c3cb88
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/fsstor/fsstorage.cxx4
-rw-r--r--svl/source/fsstor/oinputstreamcontainer.cxx2
-rw-r--r--svl/source/fsstor/oinputstreamcontainer.hxx4
-rw-r--r--svl/source/fsstor/ostreamcontainer.cxx2
-rw-r--r--svl/source/fsstor/ostreamcontainer.hxx4
5 files changed, 8 insertions, 8 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index 01cb71453c5c..2ee5a8b3b939 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -68,7 +68,7 @@ struct FSStorage_Impl
::ucbhelper::Content* m_pContent;
sal_Int32 m_nMode;
- ::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
+ ::comphelper::OInterfaceContainerHelper2* m_pListenersContainer; // list of listeners
::cppu::OTypeCollection* m_pTypeCollection;
uno::Reference< uno::XComponentContext > m_xContext;
@@ -1166,7 +1166,7 @@ void SAL_CALL FSStorage::addEventListener(
throw lang::DisposedException();
if ( !m_pImpl->m_pListenersContainer )
- m_pImpl->m_pListenersContainer = new ::cppu::OInterfaceContainerHelper( m_aMutex );
+ m_pImpl->m_pListenersContainer = new ::comphelper::OInterfaceContainerHelper2( m_aMutex );
m_pImpl->m_pListenersContainer->addInterface( xListener );
}
diff --git a/svl/source/fsstor/oinputstreamcontainer.cxx b/svl/source/fsstor/oinputstreamcontainer.cxx
index ec086fe2a4dc..3f2da4d68503 100644
--- a/svl/source/fsstor/oinputstreamcontainer.cxx
+++ b/svl/source/fsstor/oinputstreamcontainer.cxx
@@ -298,7 +298,7 @@ void SAL_CALL OFSInputStreamContainer::addEventListener( const uno::Reference< l
throw lang::DisposedException();
if ( !m_pListenersContainer )
- m_pListenersContainer = new ::cppu::OInterfaceContainerHelper( m_aMutex );
+ m_pListenersContainer = new ::comphelper::OInterfaceContainerHelper2( m_aMutex );
m_pListenersContainer->addInterface( xListener );
}
diff --git a/svl/source/fsstor/oinputstreamcontainer.hxx b/svl/source/fsstor/oinputstreamcontainer.hxx
index 007f23e962e1..cb53f2a67300 100644
--- a/svl/source/fsstor/oinputstreamcontainer.hxx
+++ b/svl/source/fsstor/oinputstreamcontainer.hxx
@@ -26,7 +26,7 @@
#include <cppuhelper/implbase.hxx>
-#include <cppuhelper/interfacecontainer.h>
+#include <comphelper/interfacecontainer2.hxx>
#include <osl/mutex.hxx>
@@ -43,7 +43,7 @@ class OFSInputStreamContainer : public cppu::WeakImplHelper < css::io::XInputStr
bool m_bDisposed;
- ::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
+ ::comphelper::OInterfaceContainerHelper2* m_pListenersContainer; // list of listeners
public:
explicit OFSInputStreamContainer( const css::uno::Reference < css::io::XInputStream >& xStream );
diff --git a/svl/source/fsstor/ostreamcontainer.cxx b/svl/source/fsstor/ostreamcontainer.cxx
index f5e92ec07723..4cad56aad361 100644
--- a/svl/source/fsstor/ostreamcontainer.cxx
+++ b/svl/source/fsstor/ostreamcontainer.cxx
@@ -266,7 +266,7 @@ void SAL_CALL OFSStreamContainer::addEventListener( const uno::Reference< lang::
throw lang::DisposedException();
if ( !m_pListenersContainer )
- m_pListenersContainer = new ::cppu::OInterfaceContainerHelper( m_aMutex );
+ m_pListenersContainer = new ::comphelper::OInterfaceContainerHelper2( m_aMutex );
m_pListenersContainer->addInterface( xListener );
}
diff --git a/svl/source/fsstor/ostreamcontainer.hxx b/svl/source/fsstor/ostreamcontainer.hxx
index e4a441c9866d..6fc7f634c9b0 100644
--- a/svl/source/fsstor/ostreamcontainer.hxx
+++ b/svl/source/fsstor/ostreamcontainer.hxx
@@ -31,7 +31,7 @@
#include <com/sun/star/io/XAsyncOutputMonitor.hpp>
#include <cppuhelper/weak.hxx>
#include <cppuhelper/typeprovider.hxx>
-#include <cppuhelper/interfacecontainer.h>
+#include <comphelper/interfacecontainer2.hxx>
#include <osl/mutex.hxx>
class OFSStreamContainer : public cppu::OWeakObject,
@@ -56,7 +56,7 @@ class OFSStreamContainer : public cppu::OWeakObject,
bool m_bInputClosed;
bool m_bOutputClosed;
- ::cppu::OInterfaceContainerHelper* m_pListenersContainer; // list of listeners
+ ::comphelper::OInterfaceContainerHelper2* m_pListenersContainer; // list of listeners
::cppu::OTypeCollection* m_pTypeCollection;
public: