diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-22 17:31:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-23 06:25:27 +0000 |
commit | 945ce7e10a6a215595ec653b8697340a15943888 (patch) | |
tree | 0971bf3f9d1191641cb071a77b94383c7ccfd288 /include | |
parent | dba7aaff1ac2e175f8a79caef7573d9120cf7c5c (diff) |
tdf#89329: use unique_ptr for pImpl in request
Change-Id: Idc1bc93c10bcef7344fc5f816a509308fc0c40c7
Reviewed-on: https://gerrit.libreoffice.org/25317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/request.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/frame/XDispatchRecorder.hpp> +#include <memory> 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 ); |