[Libreoffice-commits] core.git: vcl/qa
Stephan Bergmann
sbergman at redhat.com
Wed Dec 21 18:02:08 UTC 2016
vcl/qa/cppunit/complextext.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit afa3d985f194d1860e5c40470464783130d62cdb
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Dec 21 19:01:27 2016 +0100
Use ScopedVclPtrInstance
Change-Id: Ifb045ca7e764461b4633abae1a10ac7f80e073a8
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index be87185..41b239a 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 );
- ScopedVclPtr<vcl::Window> pWin(VclPtr<WorkWindow>::Create( static_cast<vcl::Window *>(nullptr) ));
+ ScopedVclPtrInstance<WorkWindow> pWin(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);
- ScopedVclPtr<vcl::Window> pWin(VclPtr<WorkWindow>::Create(static_cast<vcl::Window *>(nullptr)));
+ ScopedVclPtrInstance<WorkWindow> pWin(static_cast<vcl::Window *>(nullptr));
CPPUNIT_ASSERT(pWin);
OutputDevice *pOutDev = static_cast< OutputDevice * >(pWin.get());
More information about the Libreoffice-commits
mailing list