summaryrefslogtreecommitdiff
path: root/stoc/source/corereflection/base.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-20 15:02:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-23 07:56:34 +0200
commitbbd8c94967a4d227be46c1e777efd5b4bcf95429 (patch)
treea19ced7bbc9afb4b6b80ec86fc6f95c85efacf79 /stoc/source/corereflection/base.hxx
parentca958f886c660ce096ef59cef808fbf46b116e3c (diff)
use rtl::Reference in stoc
instead of manual acquire/release Change-Id: I626ad9875528fa76d8f781b07cc86e149032ecb1
Diffstat (limited to 'stoc/source/corereflection/base.hxx')
-rw-r--r--stoc/source/corereflection/base.hxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx
index 79d5592328e7..5f4676e192fb 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -34,6 +34,7 @@
#include <cppuhelper/component.hxx>
#include <cppuhelper/typeprovider.hxx>
#include <rtl/ustring.hxx>
+#include <rtl/ref.hxx>
#include "lrucache.hxx"
@@ -143,7 +144,8 @@ public:
class IdlClassImpl
: public ::cppu::WeakImplHelper< css::reflection::XIdlClass >
{
- IdlReflectionServiceImpl * _pReflection;
+ rtl::Reference<IdlReflectionServiceImpl>
+ m_xReflection;
OUString _aName;
css::uno::TypeClass _eTypeClass;
@@ -154,7 +156,7 @@ public:
typelib_TypeDescription * getTypeDescr() const
{ return _pTypeDescr; }
IdlReflectionServiceImpl * getReflection() const
- { return _pReflection; }
+ { return m_xReflection.get(); }
// Ctor
IdlClassImpl( IdlReflectionServiceImpl * pReflection,
@@ -327,7 +329,8 @@ public:
class IdlMemberImpl
: public ::cppu::WeakImplHelper< css::reflection::XIdlMember >
{
- IdlReflectionServiceImpl * _pReflection;
+ rtl::Reference<IdlReflectionServiceImpl>
+ m_xReflection;
OUString _aName;
typelib_TypeDescription * _pTypeDescr;
@@ -338,7 +341,7 @@ protected:
public:
IdlReflectionServiceImpl * getReflection() const
- { return _pReflection; }
+ { return m_xReflection.get(); }
typelib_TypeDescription * getTypeDescr() const
{ return _pTypeDescr; }
typelib_TypeDescription * getDeclTypeDescr() const