summaryrefslogtreecommitdiff
path: root/vcl/workben/mtfdemo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/workben/mtfdemo.cxx')
-rw-r--r--vcl/workben/mtfdemo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/workben/mtfdemo.cxx b/vcl/workben/mtfdemo.cxx
index 4f65b0ff12ce..05ab64430972 100644
--- a/vcl/workben/mtfdemo.cxx
+++ b/vcl/workben/mtfdemo.cxx
@@ -67,7 +67,7 @@ void DemoMtfWin::Paint( const Rectangle& rRect )
class DemoMtfApp : public Application
{
- DemoMtfWin *mpWin;
+ VclPtr<DemoMtfWin> mpWin;
OUString maFileName;
void showHelp()
@@ -88,7 +88,7 @@ public:
{
try
{
- mpWin = new DemoMtfWin(maFileName);
+ mpWin = VclPtr<DemoMtfWin>::Create(maFileName);
mpWin->SetText(OUString("Display metafile"));
mpWin->Show();