summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-08 13:04:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-09 08:09:58 +0200
commite9a3b06f4e2b22f26006e0df730ad23d715ecbb6 (patch)
tree75d02d9b233a997c4bb139effd9637f36f130d89 /sc/source/ui
parent33e596e03cd486ebb992327988f4bebebd23a0c9 (diff)
use unique_ptr in SdrUndoGroup
Change-Id: I569c56b6114e07b2a227ad0f906c1a5188a94af4 Reviewed-on: https://gerrit.libreoffice.org/61528 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/view/drawvie4.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index ae640d7f1708..f884429f6ad1 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -518,7 +518,7 @@ void ScDrawView::SetMarkedOriginalSize()
{
tools::Rectangle aDrawRect = pObj->GetLogicRect();
- pUndoGroup->AddAction( new SdrUndoGeoObj( *pObj ) );
+ pUndoGroup->AddAction( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
pObj->Resize( aDrawRect.TopLeft(), Fraction( aOriginalSize.Width(), aDrawRect.GetWidth() ),
Fraction( aOriginalSize.Height(), aDrawRect.GetHeight() ) );
++nDone;
@@ -581,7 +581,7 @@ void ScDrawView::FitToCellSize()
aCellRect.setHeight(static_cast<double>(aGraphicRect.GetHeight()) * fScaleMin);
}
- pUndoGroup->AddAction( new SdrUndoGeoObj( *pObj ) );
+ pUndoGroup->AddAction( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
pObj->SetSnapRect(aCellRect);