summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdetc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 10:05:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-06 11:46:07 +0100
commit2589cb2a7eba778c249eaa938eb1bf934c6bf3b4 (patch)
tree8c3fa950470852b208d4f003bc4c7fe4f8e660e2 /svx/source/svdraw/svdetc.cxx
parent2e6bbc04d906ed308fc5ca769bad7b8b4676594e (diff)
loplugin:useuniqueptr in OLEObjCache
Change-Id: Ie16963e2b3b9d85d5640f03daa487dbe231af4a1 Reviewed-on: https://gerrit.libreoffice.org/49272 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdetc.cxx')
-rw-r--r--svx/source/svdraw/svdetc.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx
index aa92b123be97..3c6924affdc4 100644
--- a/svx/source/svdraw/svdetc.cxx
+++ b/svx/source/svdraw/svdetc.cxx
@@ -108,7 +108,7 @@ OLEObjCache::OLEObjCache()
nSize = officecfg::Office::Common::Cache::DrawingEngine::OLE_Objects::get();
else
nSize = 100;
- pTimer = new AutoTimer( "svx OLEObjCache pTimer UnloadCheck" );
+ pTimer.reset( new AutoTimer( "svx OLEObjCache pTimer UnloadCheck" ) );
pTimer->SetInvokeHandler( LINK(this, OLEObjCache, UnloadCheckHdl) );
pTimer->SetTimeout(20000);
pTimer->SetStatic();
@@ -117,7 +117,6 @@ OLEObjCache::OLEObjCache()
OLEObjCache::~OLEObjCache()
{
pTimer->Stop();
- delete pTimer;
}
IMPL_LINK_NOARG(OLEObjCache, UnloadCheckHdl, Timer*, void)