summaryrefslogtreecommitdiff
path: root/embeddedobj/source/inc
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj/source/inc')
-rw-r--r--embeddedobj/source/inc/oleembobj.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/embeddedobj/source/inc/oleembobj.hxx b/embeddedobj/source/inc/oleembobj.hxx
index a4cc71c0f8d8..bc75a5af9c4c 100644
--- a/embeddedobj/source/inc/oleembobj.hxx
+++ b/embeddedobj/source/inc/oleembobj.hxx
@@ -120,7 +120,7 @@ class OleEmbeddedObject : public ::cppu::WeakImplHelper
::osl::Mutex m_aMutex;
- OleComponent* m_pOleComponent;
+ rtl::Reference<OleComponent> m_pOleComponent;
std::unique_ptr<::cppu::OMultiTypeInterfaceContainerHelper> m_pInterfaceContainer;
@@ -274,8 +274,8 @@ protected:
#ifdef _WIN32
bool SaveObject_Impl();
bool OnShowWindow_Impl( bool bShow );
- void CreateOleComponent_Impl( OleComponent* pOleComponent = nullptr );
- void CreateOleComponentAndLoad_Impl( OleComponent* pOleComponent = nullptr );
+ void CreateOleComponent_Impl( rtl::Reference<OleComponent> const & pOleComponent = {} );
+ void CreateOleComponentAndLoad_Impl( rtl::Reference<OleComponent> const & pOleComponent = {} );
void CreateOleComponentFromClipboard_Impl( OleComponent* pOleComponent = nullptr );
OUString CreateTempURLEmpty_Impl();
OUString GetTempURL_Impl();