From 9d5b66bb81c1649f07e93d7ca28789473c387e11 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Sun, 5 Apr 2015 14:03:50 +0200 Subject: unique_ptr for SfxTemplatePanelControl pImpl Change-Id: Ia073d28181d0894e1ec8baddd53d4ac943f69557 --- sfx2/source/dialog/templdlg.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 7d0bea97a369..bcb7b11bc4ec 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -268,7 +268,7 @@ PopupMenu* SfxActionListBox::CreateContextMenu( void ) SfxTemplatePanelControl::SfxTemplatePanelControl ( SfxBindings* pBindings, vcl::Window* pParentWindow) - : DockingWindow(pParentWindow, SfxResId(DLG_STYLE_DESIGNER) ), + : DockingWindow(pParentWindow, SfxResId(DLG_STYLE_DESIGNER)), pImpl(new SfxTemplateDialog_Impl(pBindings, this)), mpBindings(pBindings) { @@ -281,7 +281,6 @@ SfxTemplatePanelControl::SfxTemplatePanelControl ( SfxTemplatePanelControl::~SfxTemplatePanelControl (void) { - delete pImpl; } void SfxTemplatePanelControl::DataChanged( const DataChangedEvent& _rDCEvt ) @@ -1013,8 +1012,7 @@ void SfxCommonTemplateDialog_Impl::FillTreeBox() pTreeBox->SetDragDropMode(SV_DRAGDROP_NONE); while(pStyle) { - StyleTree_Impl* pNew = - new StyleTree_Impl(pStyle->GetName(), pStyle->GetParent()); + StyleTree_Impl* pNew = new StyleTree_Impl(pStyle->GetName(), pStyle->GetParent()); aArr.push_back(pNew); pStyle = pStyleSheetPool->Next(); } -- cgit