From 5df70781f3001d2f5be0343fc9daf04ab5c56719 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Apr 2015 16:33:13 +0200 Subject: svx: convert new to ::Create. Change-Id: I52f589dabdedb538a4a5d0eadfa42b0d10de9b80 --- svx/source/tbxctrls/linectrl.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'svx/source/tbxctrls/linectrl.cxx') diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx index c7e4e1760bd4..82be0ad0e714 100644 --- a/svx/source/tbxctrls/linectrl.cxx +++ b/svx/source/tbxctrls/linectrl.cxx @@ -256,7 +256,7 @@ SvxLineEndWindow::SvxLineEndWindow( SfxPopupWindow( nSlotId, rFrame, WinBits( WB_STDPOPUP | WB_OWNERDRAWDECORATION ) ), - aLineEndSet ( new ValueSet(this, WinBits( WB_ITEMBORDER | WB_3DLOOK | WB_NO_DIRECTSELECT )) ), + aLineEndSet ( VclPtr::Create(this, WinBits( WB_ITEMBORDER | WB_3DLOOK | WB_NO_DIRECTSELECT )) ), nCols ( 2 ), nLines ( 12 ), nLineEndWidth ( 400 ), @@ -277,7 +277,7 @@ SvxLineEndWindow::SvxLineEndWindow( rFrame, pParentWindow, WinBits( WB_STDPOPUP | WB_OWNERDRAWDECORATION ) ), - aLineEndSet ( new ValueSet(this, WinBits( WB_ITEMBORDER | WB_3DLOOK | WB_NO_DIRECTSELECT ) )), + aLineEndSet ( VclPtr::Create(this, WinBits( WB_ITEMBORDER | WB_3DLOOK | WB_NO_DIRECTSELECT ) )), nCols ( 2 ), nLines ( 12 ), nLineEndWidth ( 400 ), @@ -322,7 +322,7 @@ void SvxLineEndWindow::implInit() VclPtr SvxLineEndWindow::Clone() const { - return new SvxLineEndWindow( GetId(), mxFrame, GetText() ); + return VclPtr::Create( GetId(), mxFrame, GetText() ); } @@ -629,10 +629,10 @@ SfxPopupWindowType SvxLineEndToolBoxControl::GetPopupWindowType() const -SfxPopupWindow* SvxLineEndToolBoxControl::CreatePopupWindow() +VclPtr SvxLineEndToolBoxControl::CreatePopupWindow() { SvxLineEndWindow* pLineEndWin = - new SvxLineEndWindow( GetId(), m_xFrame, &GetToolBox(), SVX_RESSTR( RID_SVXSTR_LINEEND ) ); + VclPtr::Create( GetId(), m_xFrame, &GetToolBox(), SVX_RESSTR( RID_SVXSTR_LINEEND ) ); pLineEndWin->StartPopupMode( &GetToolBox(), FLOATWIN_POPUPMODE_GRABFOCUS | FLOATWIN_POPUPMODE_ALLOWTEAROFF | -- cgit