summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/undobase.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-28 10:37:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-29 08:37:23 +0200
commitf5772b154d0c806ef029f1feee1ee92537eec463 (patch)
tree6b71a6af653d2a7b7f309d0ad4521177c3b16c01 /sc/source/ui/inc/undobase.hxx
parent286461d872057ab8110d9713c5cbe859448dda70 (diff)
loplugin:useuniqueptr in various ScUndo*
Change-Id: I604d7b900836e87fc768e1b00dc62a570ff477b5 Reviewed-on: https://gerrit.libreoffice.org/56619 Tested-by: Jenkins Reviewed-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.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/inc/undobase.hxx b/sc/source/ui/inc/undobase.hxx
index 6fa0fbd7a9e2..a531caf1cac2 100644
--- a/sc/source/ui/inc/undobase.hxx
+++ b/sc/source/ui/inc/undobase.hxx
@@ -88,7 +88,7 @@ public:
protected:
ScRange aBlockRange;
- SdrUndoAction* pDrawUndo;
+ std::unique_ptr<SdrUndoAction> pDrawUndo;
ScBlockUndoMode eMode;
void BeginUndo();
@@ -108,7 +108,7 @@ public:
protected:
ScRangeList maBlockRanges;
- SdrUndoAction* mpDrawUndo;
+ std::unique_ptr<SdrUndoAction> mpDrawUndo;
void BeginUndo();
void EndUndo();
@@ -123,7 +123,7 @@ protected:
class ScDBFuncUndo: public ScSimpleUndo
{
protected:
- ScDBData* pAutoDBRange;
+ std::unique_ptr<ScDBData> pAutoDBRange;
ScRange aOriginalRange;
public:
@@ -147,9 +147,9 @@ public:
virtual ~ScMoveUndo() override;
protected:
- SdrUndoAction* pDrawUndo;
- ScDocument* pRefUndoDoc;
- ScRefUndoData* pRefUndoData;
+ std::unique_ptr<SdrUndoAction> pDrawUndo;
+ std::unique_ptr<ScDocument> pRefUndoDoc;
+ std::unique_ptr<ScRefUndoData> pRefUndoData;
ScMoveUndoMode eMode;
void BeginUndo();