vcl/qa/cppunit/complextext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 34e9bad0fa5e2783a8f30f04cb3a557a6bb1e3a2 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Dec 21 18:43:02 2016 +0100 Dispose Window when done Change-Id: I4db6cd3e736d2775325b6c4497a3cea035f35276 diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx index cb5abbd..be87185 100644 --- a/vcl/qa/cppunit/complextext.cxx +++ b/vcl/qa/cppunit/complextext.cxx @@ -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()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits