summaryrefslogtreecommitdiff
path: root/svx/workben
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-17 16:33:13 +0200
committerNoel Grandin <noel@peralex.com>2015-04-17 16:33:13 +0200
commit5df70781f3001d2f5be0343fc9daf04ab5c56719 (patch)
tree2eef02fb2ca619fce2fa0a30bf2239eba13d9329 /svx/workben
parent5cf00154ca1e5013ceba59103ad706a3492ea70b (diff)
svx: convert new to ::Create.
Change-Id: I52f589dabdedb538a4a5d0eadfa42b0d10de9b80
Diffstat (limited to 'svx/workben')
-rw-r--r--svx/workben/msview/msview.cxx2
-rw-r--r--svx/workben/pixelctl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/workben/msview/msview.cxx b/svx/workben/msview/msview.cxx
index 9a05f388a0e0..bc68c0d68b04 100644
--- a/svx/workben/msview/msview.cxx
+++ b/svx/workben/msview/msview.cxx
@@ -902,7 +902,7 @@ MSViewerWorkWindow::MSViewerWorkWindow() :
mpListBox[nPane]->SetExpandingHdl( LINK( this, MSViewerWorkWindow, implExpandingHdl ) );
mpListBox[nPane]->SetCollapsingHdl( LINK( this, MSViewerWorkWindow, implCollapsingHdl ) );
- mpEdit[nPane] = new MultiLineEdit(this, WB_3DLOOK | WB_BORDER | WB_LEFT | WB_TOP | WB_READONLY | WB_HSCROLL | WB_VSCROLL );
+ mpEdit[nPane] = VclPtr<MultiLineEdit>::Create(this, WB_3DLOOK | WB_BORDER | WB_LEFT | WB_TOP | WB_READONLY | WB_HSCROLL | WB_VSCROLL );
mpEdit[nPane]->SetReadOnly( TRUE );
mpEdit[nPane]->SetReadOnly( TRUE );
mpEdit[nPane]->SetControlFont( aFont );
diff --git a/svx/workben/pixelctl.cxx b/svx/workben/pixelctl.cxx
index 2ff8ca838263..591e0011f9a9 100644
--- a/svx/workben/pixelctl.cxx
+++ b/svx/workben/pixelctl.cxx
@@ -107,7 +107,7 @@ void Main()
MyWin::MyWin( vcl::Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle ),
- maPixelCtl( new SvxPixelCtl(this) )
+ maPixelCtl( VclPtr<SvxPixelCtl>::Create(this) )
{
maPixelCtl->SetPosSizePixel( Point( 10, 10 ), Size( 200, 200 ) );
maPixelCtl->Show();