summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/mgetempl.cxx4
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();