summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objmisc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/objmisc.cxx')
-rw-r--r--sfx2/source/doc/objmisc.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index a199f99cb4d9..a7fc00a38aa8 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -985,13 +985,12 @@ void SfxObjectShell::CheckForBrokenDocSignatures_Impl()
void SfxObjectShell::SetAutoLoad(
const INetURLObject& rUrl, sal_uInt32 nTime, bool bReload )
{
- if ( pImpl->pReloadTimer )
- DELETEZ(pImpl->pReloadTimer);
+ pImpl->pReloadTimer.reset();
if ( bReload )
{
- pImpl->pReloadTimer = new AutoReloadTimer_Impl(
+ pImpl->pReloadTimer.reset(new AutoReloadTimer_Impl(
rUrl.GetMainURL( INetURLObject::DecodeMechanism::ToIUri ),
- nTime, this );
+ nTime, this ));
pImpl->pReloadTimer->Start();
}
}