summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-12-21 19:01:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-12-21 19:01:27 +0100
commitafa3d985f194d1860e5c40470464783130d62cdb (patch)
tree98f285cb998b1ddf7fcdd137b03f5ea882f0bbff /vcl
parent17fab5460332a75bcab0f734f17f7a2292a7aa27 (diff)
Use ScopedVclPtrInstance
Change-Id: Ifb045ca7e764461b4633abae1a10ac7f80e073a8
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/complextext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index be8718530fc6..41b239a9d0f3 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());