summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-31 20:25:31 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:26:59 +0100
commit07f3d95b3d5201f758906c5cd5286f0d54c12672 (patch)
tree6c15abea04e83c92900bec7f190ca55288badd17 /vcl/qa/cppunit
parent3072f80c53adebe1242f90b16cf4e83064cb4f4f (diff)
vcl: stop vcl::Window clobbering mnRefCnt itself.
Change-Id: If1926c8ecc94c3b9786a3f255371b440c482a155
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r--vcl/qa/cppunit/lifecycle.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx
index cbe0ef62b096..5f5f4e30f749 100644
--- a/vcl/qa/cppunit/lifecycle.cxx
+++ b/vcl/qa/cppunit/lifecycle.cxx
@@ -68,8 +68,7 @@ void LifecycleTest::testVirtualDevice()
void LifecycleTest::testMultiDispose()
{
- VclPtrInstance<WorkWindow> xWin((vcl::Window *)NULL,
- WB_APP|WB_STDWORK);
+ VclPtrInstance<WorkWindow> xWin(nullptr, WB_APP|WB_STDWORK);
CPPUNIT_ASSERT(xWin.get() != NULL);
xWin->disposeOnce();
xWin->disposeOnce();