summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undoblk2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-27 14:05:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-28 08:33:48 +0200
commit0d41681eef154f8208e9764f0a459ae79d033164 (patch)
tree7c669cfdc90545c4e659269c3cacd575ed6608fb /sc/source/ui/undo/undoblk2.cxx
parent2037e85b790b9cb9e563a66b79bd549e328b8b4f (diff)
loplugin:useuniqueptr in ScUndoWidthOrHeight
Change-Id: I224c5d7b2562cc0ad5d03dc7dffc5476c83a5f54 Reviewed-on: https://gerrit.libreoffice.org/56561 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/undo/undoblk2.cxx')
-rw-r--r--sc/source/ui/undo/undoblk2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/undo/undoblk2.cxx b/sc/source/ui/undo/undoblk2.cxx
index 0bde3c5a7f1d..a6fcc01b6881 100644
--- a/sc/source/ui/undo/undoblk2.cxx
+++ b/sc/source/ui/undo/undoblk2.cxx
@@ -60,8 +60,8 @@ ScUndoWidthOrHeight::ScUndoWidthOrHeight( ScDocShell* pNewDocShell,
ScUndoWidthOrHeight::~ScUndoWidthOrHeight()
{
- delete pUndoDoc;
- delete pUndoTab;
+ pUndoDoc.reset();
+ pUndoTab.reset();
DeleteSdrUndoAction( pDrawUndo );
}
@@ -95,7 +95,7 @@ void ScUndoWidthOrHeight::Undo()
//! outlines from all tables?
if (pUndoTab) // Outlines are included when saving ?
- rDoc.SetOutlineTable( nStartTab, pUndoTab );
+ rDoc.SetOutlineTable( nStartTab, pUndoTab.get() );
ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
SCTAB nTabCount = rDoc.GetTableCount();