From 5d133eb62187ae910772ff5dfeb8f2c3276e8481 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 31 Mar 2015 20:57:16 +0100 Subject: first half of non-scriptable, Instance constructor conversion. Change-Id: If73bb41bfa805e22609748f25971724b4778edb3 --- cppcanvas/qa/unit/test.cxx | 2 +- cppcanvas/source/mtfrenderer/transparencygroupaction.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/qa/unit/test.cxx b/cppcanvas/qa/unit/test.cxx index 684980a78321..fa7b21e2ceaa 100644 --- a/cppcanvas/qa/unit/test.cxx +++ b/cppcanvas/qa/unit/test.cxx @@ -43,7 +43,7 @@ public: void CanvasTest::testComposite() { #ifdef LINUX - VclPtr pWin(new WorkWindow( (vcl::Window *)NULL )); + VclPtrInstance pWin( nullptr ); uno::Reference xCanvas = pWin->GetCanvas (); if( !xCanvas.is() ) diff --git a/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx b/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx index 74a9505bcf08..51a8c32b4568 100644 --- a/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx +++ b/cppcanvas/source/mtfrenderer/transparencygroupaction.cxx @@ -242,8 +242,8 @@ namespace cppcanvas // render our content into an appropriately sized // VirtualDevice with alpha channel - ScopedVclPtr aVDev(new VirtualDevice( - *::Application::GetDefaultDevice(), 0, 0 )); + ScopedVclPtrInstance aVDev( + *::Application::GetDefaultDevice(), 0, 0 ); aVDev->SetOutputSizePixel( aBitmapSizePixel ); aVDev->SetMapMode(); -- cgit