summaryrefslogtreecommitdiff
path: root/vcl/workben/outdevgrind.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/workben/outdevgrind.cxx')
-rw-r--r--vcl/workben/outdevgrind.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx
index 528eae381abb..da14e1aac673 100644
--- a/vcl/workben/outdevgrind.cxx
+++ b/vcl/workben/outdevgrind.cxx
@@ -72,7 +72,6 @@ class TestWindow : public Dialog
Show();
}
- virtual ~TestWindow() {}
virtual void Paint( const Rectangle& rRect ) SAL_OVERRIDE;
};
@@ -899,8 +898,8 @@ sal_uInt16 GrindApp::Exception( sal_uInt16 nError )
int GrindApp::Main()
{
- TestWindow aWindow;
- aWindow.Execute();
+ ScopedVclPtrInstance<TestWindow> aWindow;
+ aWindow->Execute();
return 0;
}