diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-12-21 18:43:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-12-21 18:43:02 +0100 |
commit | 34e9bad0fa5e2783a8f30f04cb3a557a6bb1e3a2 (patch) | |
tree | 7a5ff1502a35a89def89ef99962df6acef92271a | |
parent | 4e7f8e5a82e57914d07be2508c9e3ca3f7ca6ff0 (diff) |
Dispose Window when done
Change-Id: I4db6cd3e736d2775325b6c4497a3cea035f35276
-rw-r--r-- | vcl/qa/cppunit/complextext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx index cb5abbdbb83c..be8718530fc6 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()); |