summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-03 10:22:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-04 08:35:52 +0200
commit2720dbe9f79b6d954f40b9b50aeb8ddd267a4b36 (patch)
treeb1dbccb720fed0d86110e1d720026074f851920a /sc/source/ui/view
parentac49eb6ef947e21504d7f20d2d5e9fea4dbd263f (diff)
loplugin:useuniqueptr in ScDrawView
Change-Id: Idbc47bdb3ff16d29a93365654b36b047c564de70 Reviewed-on: https://gerrit.libreoffice.org/56906 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/drawview.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 51b281c91b3f..ca10345efed0 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -123,11 +123,7 @@ void ScDrawView::Construct()
void ScDrawView::ImplClearCalcDropMarker()
{
- if(pDropMarker)
- {
- delete pDropMarker;
- pDropMarker = nullptr;
- }
+ pDropMarker.reset();
}
ScDrawView::~ScDrawView()
@@ -907,7 +903,7 @@ void ScDrawView::MarkDropObj( SdrObject* pObj )
if(pDropMarkObj)
{
- pDropMarker = new SdrDropMarkerOverlay(*this, *pDropMarkObj);
+ pDropMarker.reset( new SdrDropMarkerOverlay(*this, *pDropMarkObj) );
}
}
}