diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-05 01:01:51 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-06 07:17:56 +0000 |
commit | 37c0fd253e7a73d08d35b60fecd7aa09816d9073 (patch) | |
tree | 24b70a728125dd363793f5709ad2f5823abf377c /include/sfx2 | |
parent | 6b51e9afe01171a46f19fb96b1c2a2074d5a92ca (diff) |
tdf#89329: use unique_ptr for pImpl in objsh
Change-Id: I572436af608821c3f6fad4deb66ebe2598a2df8a
Reviewed-on: https://gerrit.libreoffice.org/25912
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/objsh.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index 24b1d82862f9..ee86c347dc03 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -205,7 +205,7 @@ friend struct ModifyBlocker_Impl; friend class SfxObjectShellLock; private: - struct SfxObjectShell_Impl* pImp; // internal data + std::unique_ptr<struct SfxObjectShell_Impl> pImpl; // internal data SfxMedium * pMedium; // Description of the file for example // storage that contains the object @@ -654,12 +654,12 @@ public: SAL_DLLPRIVATE bool IsModifyPasswordEntered(); SAL_DLLPRIVATE void InitBasicManager_Impl(); - SAL_DLLPRIVATE SfxObjectShell_Impl* Get_Impl() { return pImp; } + SAL_DLLPRIVATE SfxObjectShell_Impl* Get_Impl() { return pImpl.get(); } SAL_DLLPRIVATE static bool UseInteractionToHandleError( const css::uno::Reference< css::task::XInteractionHandler >& xHandler, sal_uInt32 nError ); - SAL_DLLPRIVATE const SfxObjectShell_Impl* Get_Impl() const { return pImp; } + SAL_DLLPRIVATE const SfxObjectShell_Impl* Get_Impl() const { return pImpl.get(); } SAL_DLLPRIVATE void SetCreateMode_Impl( SfxObjectCreateMode nMode ); |