summaryrefslogtreecommitdiff
path: root/sw/source/core/text/porfld.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-02 14:36:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-03 08:17:12 +0200
commit1c588317c6e55ede11c577ea16e1af85eee4810a (patch)
treee48e75e1e017dce8142d32ba0ef16ecf68ac2ae6 /sw/source/core/text/porfld.cxx
parentecf56400b31511ebb737ba6c9200d1b075867ec7 (diff)
loplugin:useuniqueptr in SwGrfNumPortion
Change-Id: I87f60bc3b6dc11246202801f39cbc7cf464e1890 Reviewed-on: https://gerrit.libreoffice.org/56829 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/porfld.cxx')
-rw-r--r--sw/source/core/text/porfld.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx
index 9b76c0f5a7a0..20b18918a5aa 100644
--- a/sw/source/core/text/porfld.cxx
+++ b/sw/source/core/text/porfld.cxx
@@ -800,7 +800,7 @@ SwGrfNumPortion::~SwGrfNumPortion()
if (pGraph)
pGraph->StopAnimation( nullptr, nId );
}
- delete pBrush;
+ pBrush.reset();
}
void SwGrfNumPortion::StopAnimation( OutputDevice* pOut )
@@ -993,7 +993,7 @@ void SwGrfNumPortion::Paint( const SwTextPaintInfo &rInf ) const
if( bDraw && aTmp.HasArea() )
{
- DrawGraphic( pBrush, const_cast<OutputDevice*>(rInf.GetOut()),
+ DrawGraphic( pBrush.get(), const_cast<OutputDevice*>(rInf.GetOut()),
aTmp, aRepaint, m_bReplace ? GRFNUM_REPLACE : GRFNUM_YES );
}
}