summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 16:02:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-20 08:51:08 +0200
commit3bb8bdb93f1546f64ff3f183d6162c41a03856bf (patch)
tree3e420ad9b90da186b5364f14d6dfd0d3a01e77f6 /include/comphelper
parent3663edf465e87d823e354b320b8d072f7764d5dc (diff)
use rtl::Reference in OContainerListener
instead of manual acquire/release Change-Id: I83e6229029e662073e2e01e98f4846fb0a0ed643
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/containermultiplexer.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/comphelper/containermultiplexer.hxx b/include/comphelper/containermultiplexer.hxx
index 946ff698373d..07b044303dbf 100644
--- a/include/comphelper/containermultiplexer.hxx
+++ b/include/comphelper/containermultiplexer.hxx
@@ -24,6 +24,7 @@
#include <cppuhelper/implbase.hxx>
#include <osl/mutex.hxx>
#include <comphelper/comphelperdllapi.h>
+#include <rtl/ref.hxx>
namespace comphelper
@@ -43,8 +44,8 @@ namespace comphelper
{
friend class OContainerListenerAdapter;
protected:
- OContainerListenerAdapter* m_pAdapter;
- ::osl::Mutex& m_rMutex;
+ rtl::Reference<OContainerListenerAdapter> m_xAdapter;
+ ::osl::Mutex& m_rMutex;
public:
OContainerListener(::osl::Mutex& _rMutex);