From 945ce7e10a6a215595ec653b8697340a15943888 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Sun, 22 May 2016 17:31:05 +0200 Subject: tdf#89329: use unique_ptr for pImpl in request Change-Id: Idc1bc93c10bcef7344fc5f816a509308fc0c40c7 Reviewed-on: https://gerrit.libreoffice.org/25317 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/sfx2/request.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/sfx2/request.hxx') diff --git a/include/sfx2/request.hxx b/include/sfx2/request.hxx index 1e07c7658caf..d6dd53df7480 100644 --- a/include/sfx2/request.hxx +++ b/include/sfx2/request.hxx @@ -29,6 +29,7 @@ #include #include #include +#include class SfxPoolItem; class SfxAllItemSet; @@ -46,7 +47,7 @@ friend struct SfxRequest_Impl; sal_uInt16 nSlot; SfxAllItemSet* pArgs; - SfxRequest_Impl* pImp; + std::unique_ptr< SfxRequest_Impl > pImpl; public: SAL_DLLPRIVATE void Record_Impl( SfxShell &rSh, const SfxSlot &rSlot, @@ -55,7 +56,6 @@ public: private: SAL_DLLPRIVATE void Done_Impl( const SfxItemSet *pSet ); - public: SfxRequest( SfxViewFrame*, sal_uInt16 nSlotId ); SfxRequest( sal_uInt16 nSlot, SfxCallMode nCallMode, SfxItemPool &rPool ); -- cgit