summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/undobase.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-24 14:27:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-25 10:59:37 +0200
commit6ae4c85fe6c1bdd009b494382ac2ca2584307801 (patch)
tree8d04ef513bb495922594c0514fe530fa731affc8 /sc/source/ui/inc/undobase.hxx
parent7413216e02be9b2f8eb39d550c297021e92ef299 (diff)
loplugin:useuniqueptr in ScMoveUndo
Change-Id: I622a0f37866c5ea1f4ec5f4475d784682a0179c2 Reviewed-on: https://gerrit.libreoffice.org/59560 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.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/inc/undobase.hxx b/sc/source/ui/inc/undobase.hxx
index a531caf1cac2..86da282b3f8b 100644
--- a/sc/source/ui/inc/undobase.hxx
+++ b/sc/source/ui/inc/undobase.hxx
@@ -142,13 +142,13 @@ class ScMoveUndo: public ScSimpleUndo // with references
{
public:
ScMoveUndo( ScDocShell* pDocSh,
- ScDocument* pRefDoc, ScRefUndoData* pRefData,
+ ScDocumentUniquePtr pRefDoc, ScRefUndoData* pRefData,
ScMoveUndoMode eRefMode );
virtual ~ScMoveUndo() override;
protected:
std::unique_ptr<SdrUndoAction> pDrawUndo;
- std::unique_ptr<ScDocument> pRefUndoDoc;
+ ScDocumentUniquePtr pRefUndoDoc;
std::unique_ptr<ScRefUndoData> pRefUndoData;
ScMoveUndoMode eMode;