summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/navipi.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-13 15:49:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-14 09:36:58 +0100
commit9f713bd753afd7b0ed8c16a17dc22755b5862d36 (patch)
tree5c7266078d04c3959e202f13706064261f4b83ba /sw/source/uibase/utlui/navipi.cxx
parent721e6eb9899aa4ff6ee943e81caddb1722139adf (diff)
DELETEZ->std::unique_ptr in SwNavigationPI
Change-Id: Ie8990e2efd43cc9ad5cd7e6d71514dffcc3ade49 Reviewed-on: https://gerrit.libreoffice.org/46398 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/utlui/navipi.cxx')
-rw-r--r--sw/source/uibase/utlui/navipi.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 47d261547c6e..c98dba2dafb1 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -772,7 +772,7 @@ void SwNavigationPI::dispose()
{
if (m_pxObjectShell->Is())
(*m_pxObjectShell)->DoClose();
- delete m_pxObjectShell;
+ m_pxObjectShell.reset();
}
if (IsBound())
@@ -1019,7 +1019,7 @@ IMPL_LINK(SwNavigationPI, DoneLink, SfxPoolItem *, pItem, void)
m_pContentWrtShell = m_pContentView->GetWrtShellPtr();
else
m_pContentWrtShell = nullptr;
- m_pxObjectShell = new SfxObjectShellLock(pFrame->GetObjectShell());
+ m_pxObjectShell.reset( new SfxObjectShellLock(pFrame->GetObjectShell()) );
FillBox();
m_aContentTree->Update();
}
@@ -1102,7 +1102,7 @@ sal_Int8 SwNavigationPI::ExecuteDrop( const ExecuteDropEvent& rEvt )
{
m_aContentTree->SetHiddenShell( nullptr );
(*m_pxObjectShell)->DoClose();
- DELETEZ( m_pxObjectShell);
+ m_pxObjectShell.reset();
}
SfxStringItem aFileItem(SID_FILE_NAME, sFileName );
SfxStringItem aOptionsItem( SID_OPTIONS, OUString("HRC") );