diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 10:11:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-19 05:39:18 +0000 |
commit | 9767537e22e178eb23872de138ea70e57c1a6725 (patch) | |
tree | 5abf4eee091215affc75477b08def703188de513 /sc/source/ui/inc/undobase.hxx | |
parent | 7c817d73402583f1b077d31a695c565a53468887 (diff) |
new loplugin: useuniqueptr: sc part 2
Change-Id: I37936a297027313e2a8ae18f355567462955739e
Reviewed-on: https://gerrit.libreoffice.org/33203
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/inc/undobase.hxx')
-rw-r--r-- | sc/source/ui/inc/undobase.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/inc/undobase.hxx b/sc/source/ui/inc/undobase.hxx index 00d1532ab4b2..571690f9ad4b 100644 --- a/sc/source/ui/inc/undobase.hxx +++ b/sc/source/ui/inc/undobase.hxx @@ -51,7 +51,8 @@ public: protected: ScDocShell* pDocShell; - SfxUndoAction* pDetectiveUndo; + std::unique_ptr<SfxUndoAction> + pDetectiveUndo; sal_Int32 mnViewShellId; bool IsPaintLocked() const { return pDocShell->IsPaintLocked(); } @@ -165,14 +166,14 @@ private: class ScUndoWrapper: public SfxUndoAction // for manual merging of actions { - SfxUndoAction* pWrappedUndo; - sal_Int32 mnViewShellId; + std::unique_ptr<SfxUndoAction> pWrappedUndo; + sal_Int32 mnViewShellId; public: ScUndoWrapper( SfxUndoAction* pUndo ); virtual ~ScUndoWrapper() override; - SfxUndoAction* GetWrappedUndo() { return pWrappedUndo; } + SfxUndoAction* GetWrappedUndo() { return pWrappedUndo.get(); } void ForgetWrappedUndo(); virtual void Undo() override; |