summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-03 09:42:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-04 08:35:34 +0200
commitac49eb6ef947e21504d7f20d2d5e9fea4dbd263f (patch)
tree8905572f02456c6c942e3b0b3b9d1d4ed6b6603a /sc/source/ui/view
parent38733c7daab85793a8d88c58808f8e35d3d25887 (diff)
loplugin:useuniqueptr in ScNoteMarker
Change-Id: I4880f23a6c5879807430b60e812c6c697cf69268 Reviewed-on: https://gerrit.libreoffice.org/56905 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/notemark.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/notemark.cxx b/sc/source/ui/view/notemark.cxx
index 3df9dc44e2ff..5f4b4d2e91d5 100644
--- a/sc/source/ui/view/notemark.cxx
+++ b/sc/source/ui/view/notemark.cxx
@@ -71,14 +71,14 @@ ScNoteMarker::~ScNoteMarker()
InvalidateWin();
- delete m_pModel;
+ m_pModel.reset();
}
IMPL_LINK_NOARG(ScNoteMarker, TimeHdl, Timer *, void)
{
if (!m_bVisible)
{
- m_pModel = new SdrModel();
+ m_pModel.reset( new SdrModel() );
m_pModel->SetScaleUnit(MapUnit::Map100thMM);
SfxItemPool& rPool = m_pModel->GetItemPool();
rPool.SetDefaultMetric(MapUnit::Map100thMM);