summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-13 21:18:16 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 11:01:58 +0100
commit06f826c812f6bec7e33097f99788a8532cd9ee0b (patch)
tree72b0731d6477c4df912cdecf673c1c1f86534438 /vcl
parent808f69e3b7bf7c6c5df1b2942204ef9ed9212735 (diff)
vcl: fix lifecycle test to disposeOnce.
Change-Id: Idef33e0b8e6c986c8808c2b611c5f4b6632e7511
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/lifecycle.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx
index d73dcc8e16b4..04a4719d2e3f 100644
--- a/vcl/qa/cppunit/lifecycle.cxx
+++ b/vcl/qa/cppunit/lifecycle.cxx
@@ -57,9 +57,9 @@ void LifecycleTest::testMultiDispose()
VclPtr<WorkWindow> xWin(new WorkWindow((vcl::Window *)NULL,
WB_APP|WB_STDWORK));
CPPUNIT_ASSERT(xWin.get() != NULL);
- xWin->dispose();
- xWin->dispose();
- xWin->dispose();
+ xWin->disposeOnce();
+ xWin->disposeOnce();
+ xWin->disposeOnce();
CPPUNIT_ASSERT(xWin->GetWindow(0) == NULL);
CPPUNIT_ASSERT(xWin->GetChild(0) == NULL);
CPPUNIT_ASSERT(xWin->GetChildCount() == 0);
@@ -113,8 +113,8 @@ void LifecycleTest::testChildDispose()
CPPUNIT_ASSERT(xWin.get() != NULL);
VclPtr<DisposableChild> xChild(new DisposableChild(xWin.get()));
xWin->Show();
- xChild->dispose();
- xWin->dispose();
+ xChild->disposeOnce();
+ xWin->disposeOnce();
}
CPPUNIT_TEST_SUITE_REGISTRATION(LifecycleTest);