diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-03-02 10:51:50 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-03-03 08:49:48 +0100 |
commit | 097fcd045e99edcf418e8b34ccb6d6b0b8b8de4b (patch) | |
tree | 69e783771b4823a19a7dc8cfbeba313c1c6c09ca /embeddedobj/source/inc | |
parent | 31693833dc832228c3821f83e045b6869ec22cf2 (diff) |
loplugin:refcounting (clang-cl)
Change-Id: Ifa54eed0a772b658d266e9e42be5f5232e7a6b79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111812
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embeddedobj/source/inc')
-rw-r--r-- | embeddedobj/source/inc/oleembobj.hxx | 6 |
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(); |