diff options
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/lifecycle.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx index 7c1b1c220f48..cbe0ef62b096 100644 --- a/vcl/qa/cppunit/lifecycle.cxx +++ b/vcl/qa/cppunit/lifecycle.cxx @@ -68,8 +68,8 @@ void LifecycleTest::testVirtualDevice() void LifecycleTest::testMultiDispose() { - VclPtr<WorkWindow> xWin(new WorkWindow((vcl::Window *)NULL, - WB_APP|WB_STDWORK)); + VclPtrInstance<WorkWindow> xWin((vcl::Window *)NULL, + WB_APP|WB_STDWORK); CPPUNIT_ASSERT(xWin.get() != NULL); xWin->disposeOnce(); xWin->disposeOnce(); @@ -122,8 +122,8 @@ public: void LifecycleTest::testChildDispose() { - VclPtr<WorkWindow> xWin(new WorkWindow((vcl::Window *)NULL, - WB_APP|WB_STDWORK)); + VclPtrInstance<WorkWindow> xWin((vcl::Window *)NULL, + WB_APP|WB_STDWORK); CPPUNIT_ASSERT(xWin.get() != NULL); VclPtr<DisposableChild> xChild(new DisposableChild(xWin.get())); xWin->Show(); |