summaryrefslogtreecommitdiff
path: root/embeddedobj/source/inc/oleembobj.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 08:25:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-19 13:06:47 +0200
commit37192ccc89dda5ca8c274e7cfb8b236fd5aaeb4f (patch)
tree468c140dfc8f7867e28078c0a30a4cd273325d06 /embeddedobj/source/inc/oleembobj.hxx
parent9aeccd9ac7b71bfa225e4a2c4dd6692a4659da71 (diff)
use rtl::Reference in OleEmbeddedObject
instead of raw pointer and manual acquire/release Change-Id: If626f34f3e0d7689567e2d64f94a84e5c8aae28f
Diffstat (limited to 'embeddedobj/source/inc/oleembobj.hxx')
-rw-r--r--embeddedobj/source/inc/oleembobj.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/embeddedobj/source/inc/oleembobj.hxx b/embeddedobj/source/inc/oleembobj.hxx
index 4e41552d1a94..f018d01c7ad6 100644
--- a/embeddedobj/source/inc/oleembobj.hxx
+++ b/embeddedobj/source/inc/oleembobj.hxx
@@ -37,6 +37,7 @@
#include <com/sun/star/util/XCloseable.hpp>
#include <com/sun/star/util/XCloseListener.hpp>
#include <cppuhelper/implbase.hxx>
+#include <rtl/ref.hxx>
#include <osl/thread.h>
@@ -177,7 +178,7 @@ class OleEmbeddedObject : public ::cppu::WeakImplHelper
OUString m_aLinkURL; // ???
// points to own view provider if the object has no server
- OwnView_Impl* m_pOwnView;
+ rtl::Reference<OwnView_Impl> m_xOwnView;
// whether the object should be initialized from clipboard in case of default initialization
bool m_bFromClipboard;