diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-02 13:58:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-04 08:56:39 +0200 |
commit | de0a2f6ae7fdfccc17e2b93006a3d308ac15868b (patch) | |
tree | c502d9f9005e6ef7b814e41e4431a9dbf3ccdc13 /sfx2/source/dialog/mgetempl.cxx | |
parent | 49380068794fa6776cfeedf3ffeaa3677bc63f21 (diff) |
loplugin:useuniqueptr in SfxManageStyleSheetPage
Change-Id: Ia20be44b7a574a8afe1edbf5bf313da4391898d1
Reviewed-on: https://gerrit.libreoffice.org/53760
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/mgetempl.cxx')
-rw-r--r-- | sfx2/source/dialog/mgetempl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 611a7359b9f9..2b29c7e335d1 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -92,7 +92,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(vcl::Window* pParent, const Sfx else m_pEditLinkStyleBtn->Enable(); - pFamilies = SfxApplication::GetModule_Impl()->CreateStyleFamilies(); + pFamilies.reset(SfxApplication::GetModule_Impl()->CreateStyleFamilies()); SfxStyleSheetBasePool* pPool = nullptr; SfxObjectShell* pDocShell = SfxObjectShell::Current(); @@ -252,7 +252,7 @@ void SfxManageStyleSheetPage::dispose() { m_pNameRw->SetGetFocusHdl( Link<Control&,void>() ); m_pNameRw->SetLoseFocusHdl( Link<Control&,void>() ); - delete pFamilies; + pFamilies.reset(); pItem = nullptr; pStyle = nullptr; m_pNameRo.clear(); |