summaryrefslogtreecommitdiff
path: root/fpicker/test/svdem.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-16 22:09:41 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-16 22:09:41 +0100
commita461467a3edc1452835447ff075fda7420aaf153 (patch)
treed56f03c08335a554b8b8573a89f7535ffda6633b /fpicker/test/svdem.cxx
parent5252a1d81eb69d3de443d2988367359c9174e36d (diff)
drawinglayer, editeng, forms, fpicker: convert new to ::Create.
Change-Id: I5144ac74a09a3ac5679abca89e7d87386f2484fd
Diffstat (limited to 'fpicker/test/svdem.cxx')
-rw-r--r--fpicker/test/svdem.cxx3
1 files changed, 1 insertions, 2 deletions
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");
}