Kaydet (Commit) 07f3d95b authored tarafından Michael Meeks's avatar Michael Meeks

vcl: stop vcl::Window clobbering mnRefCnt itself.

Change-Id: If1926c8ecc94c3b9786a3f255371b440c482a155
üst 3072f80c
...@@ -68,8 +68,7 @@ void LifecycleTest::testVirtualDevice() ...@@ -68,8 +68,7 @@ void LifecycleTest::testVirtualDevice()
void LifecycleTest::testMultiDispose() void LifecycleTest::testMultiDispose()
{ {
VclPtrInstance<WorkWindow> xWin((vcl::Window *)NULL, VclPtrInstance<WorkWindow> xWin(nullptr, WB_APP|WB_STDWORK);
WB_APP|WB_STDWORK);
CPPUNIT_ASSERT(xWin.get() != NULL); CPPUNIT_ASSERT(xWin.get() != NULL);
xWin->disposeOnce(); xWin->disposeOnce();
xWin->disposeOnce(); xWin->disposeOnce();
......
...@@ -1211,7 +1211,6 @@ void Window::ImplInitAppFontData( vcl::Window* pWindow ) ...@@ -1211,7 +1211,6 @@ void Window::ImplInitAppFontData( vcl::Window* pWindow )
void Window::ImplInitWindowData( WindowType nType ) void Window::ImplInitWindowData( WindowType nType )
{ {
mnRefCnt = 0;
mpWindowImpl = new WindowImpl( nType ); mpWindowImpl = new WindowImpl( nType );
meOutDevType = OUTDEV_WINDOW; meOutDevType = OUTDEV_WINDOW;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment