From a461467a3edc1452835447ff075fda7420aaf153 Mon Sep 17 00:00:00 2001 From: Michael Meeks <michael.meeks@collabora.com> Date: Thu, 16 Apr 2015 22:09:41 +0100 Subject: drawinglayer, editeng, forms, fpicker: convert new to ::Create. Change-Id: I5144ac74a09a3ac5679abca89e7d87386f2484fd --- fpicker/test/svdem.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fpicker/test') diff --git a/fpicker/test/svdem.cxx b/fpicker/test/svdem.cxx index 1f4bc6b58e9f..61217a7c692a 100644 --- a/fpicker/test/svdem.cxx +++ b/fpicker/test/svdem.cxx @@ -185,9 +185,8 @@ IMPL_LINK( MyWin, Test, PushButton*, pBtn ) printf("Test\n"); if ( pBtn == &aOKBtn ) { - SvtFileDialog* pDlg = new SvtFileDialog( this,SFXWB_PATHDIALOG); + ScopedVclPtrInstance<SvtFileDialog> pDlg(this,SFXWB_PATHDIALOG); pDlg->Execute(); - delete pDlg; printf("ok\n"); } -- cgit