Kaydet (Commit) 34e9bad0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Dispose Window when done

Change-Id: I4db6cd3e736d2775325b6c4497a3cea035f35276
üst 4e7f8e5a
......@@ -49,7 +49,7 @@ void VclComplexTextTest::testArabic()
OUString aOneTwoThree( reinterpret_cast<char const *>(pOneTwoThreeUTF8),
SAL_N_ELEMENTS( pOneTwoThreeUTF8 ) - 1,
RTL_TEXTENCODING_UTF8 );
VclPtr<vcl::Window> pWin = VclPtr<WorkWindow>::Create( static_cast<vcl::Window *>(nullptr) );
ScopedVclPtr<vcl::Window> pWin(VclPtr<WorkWindow>::Create( static_cast<vcl::Window *>(nullptr) ));
CPPUNIT_ASSERT( pWin );
OutputDevice *pOutDev = static_cast< OutputDevice * >( pWin.get() );
......@@ -94,7 +94,7 @@ void VclComplexTextTest::testTdf95650()
0x030A, 0x0C0B, 0x20E0, 0x0A0D
};
OUString aTxt(pTxt, SAL_N_ELEMENTS(pTxt) - 1);
VclPtr<vcl::Window> pWin = VclPtr<WorkWindow>::Create(static_cast<vcl::Window *>(nullptr));
ScopedVclPtr<vcl::Window> pWin(VclPtr<WorkWindow>::Create(static_cast<vcl::Window *>(nullptr)));
CPPUNIT_ASSERT(pWin);
OutputDevice *pOutDev = static_cast< OutputDevice * >(pWin.get());
......
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