diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-11 11:30:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-11 11:51:35 +0100 |
commit | 4015034e08d14c5fbc0b2b2e8a7e1e56f651d2f0 (patch) | |
tree | 259568e6f948b2de097bc7d6d177b6a78f711710 /sw | |
parent | f009b0bda3102bb557ad72ac7cc4b398b9134fe3 (diff) |
use unique_ptr for SfxChildWinContextFactory
Change-Id: Id0e30c5e591e7fb4b21fb55d47d15a5936fe1374
Reviewed-on: https://gerrit.libreoffice.org/64934
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index c3253ac29e60..4015bd1aa922 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -73,10 +73,10 @@ SfxChildWindowContext* SwNavigationChild::CreateImpl( vcl::Window *pParent, } void SwNavigationChild::RegisterChildWindowContext(SfxModule* pMod) { - SfxChildWinContextFactory *pFact = new SfxChildWinContextFactory( + auto pFact = o3tl::make_unique<SfxChildWinContextFactory>( SwNavigationChild::CreateImpl, /* cast is safe here! */static_cast< sal_uInt16 >(SwView::GetInterfaceId()) ); - SfxChildWindowContext::RegisterChildWindowContext(pMod, SID_NAVIGATOR, pFact); + SfxChildWindowContext::RegisterChildWindowContext(pMod, SID_NAVIGATOR, std::move(pFact)); } |