diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-20 13:11:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-23 07:56:34 +0200 |
commit | 017911facd7bf66bd8743e1d3357c2808dcd1bba (patch) | |
tree | 323845409416e22b8b679392897a042646a80672 /include/comphelper | |
parent | 45e591e237ef294ffd1a0f4a51122a748fd1460a (diff) |
use rtl::Reference in OPropertyChangeListener
instead of manual acquire/release
Change-Id: Ie80253b5a59a3e3fcd52f98d9c26bcde42fe985a
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/propmultiplex.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/comphelper/propmultiplex.hxx b/include/comphelper/propmultiplex.hxx index 628a809c157e..94edcda9d196 100644 --- a/include/comphelper/propmultiplex.hxx +++ b/include/comphelper/propmultiplex.hxx @@ -23,6 +23,7 @@ #include <comphelper/propstate.hxx> #include <cppuhelper/implbase.hxx> #include <comphelper/comphelperdllapi.h> +#include <rtl/ref.hxx> //= property helper classes @@ -42,12 +43,12 @@ namespace comphelper { friend class OPropertyChangeMultiplexer; - OPropertyChangeMultiplexer* m_pAdapter; + rtl::Reference<OPropertyChangeMultiplexer> m_xAdapter; ::osl::Mutex& m_rMutex; public: OPropertyChangeListener(::osl::Mutex& _rMutex) - : m_pAdapter(nullptr), m_rMutex(_rMutex) { } + : m_rMutex(_rMutex) { } virtual ~OPropertyChangeListener(); /// @throws css::uno::RuntimeException |