diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-30 21:49:04 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 13:14:06 +0100 |
commit | f59c489e642059fc060054222505b544893a3873 (patch) | |
tree | 209b80fed954b3ef2287ec20435cd590148dcc3f /vcl/qa/cppunit | |
parent | c7f3e599da3f4adf0c8cfe6e087948dc8f61bcce (diff) |
Convert more sites to VclPtrInstance.
Change-Id: I364c5eb176d5003deb1938810cccf4f2aaedbd59
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(); |