diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-16 15:22:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-28 07:32:20 +0100 |
commit | 8ff90e5d901772e0c92356bf7c6a90caaac7964e (patch) | |
tree | ca593f032e28c03eb452f6bf3c1b51b43b530a78 /include | |
parent | b2897ae7e15d69e25bc608f073e77a5a7aabd9b3 (diff) |
loplugin:useuniqueptr in SfxRequest
Change-Id: Id2b2a1ac9803b0caa2d28163160d85be5253dd9e
Reviewed-on: https://gerrit.libreoffice.org/48699
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 72d98071007f..eb6e1fb0832a 100644 --- a/include/sfx2/request.hxx +++ b/include/sfx2/request.hxx @@ -51,7 +51,7 @@ class SFX2_DLLPUBLIC SfxRequest: public SfxHint friend struct SfxRequest_Impl; sal_uInt16 nSlot; - SfxAllItemSet* pArgs; + std::unique_ptr<SfxAllItemSet> pArgs; std::unique_ptr< SfxRequest_Impl > pImpl; public: @@ -78,7 +78,7 @@ public: void SetModifier( sal_uInt16 nModi ); SAL_DLLPRIVATE void SetInternalArgs_Impl( const SfxAllItemSet& rArgs ); SAL_DLLPRIVATE const SfxItemSet* GetInternalArgs_Impl() const; - const SfxItemSet* GetArgs() const { return pArgs; } + const SfxItemSet* GetArgs() const { return pArgs.get(); } void SetArgs( const SfxAllItemSet& rArgs ); void AppendItem(const SfxPoolItem &); void RemoveItem( sal_uInt16 nSlotId ); |