diff options
Diffstat (limited to 'vcl/source/gdi/cvtsvm.cxx')
-rw-r--r-- | vcl/source/gdi/cvtsvm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx index 4edff5df4ebf..c1b33ce63393 100644 --- a/vcl/source/gdi/cvtsvm.cxx +++ b/vcl/source/gdi/cvtsvm.cxx @@ -498,7 +498,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf ) LineInfo aLineInfo( LINE_NONE, 0 ); ::std::stack< LineInfo* > aLIStack; - ScopedVclPtr<VirtualDevice> aFontVDev = new VirtualDevice; + ScopedVclPtr<VirtualDevice> aFontVDev( new VirtualDevice() ); rtl_TextEncoding eActualCharSet = osl_getThreadTextEncoding(); bool bFatLine = false; @@ -1374,7 +1374,7 @@ void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf ) rtl_TextEncoding eActualCharSet = osl_getThreadTextEncoding(); const Size aPrefSize( rMtf.GetPrefSize() ); bool bRop_0_1 = false; - ScopedVclPtr<VirtualDevice> aSaveVDev = new VirtualDevice; + ScopedVclPtr<VirtualDevice> aSaveVDev( new VirtualDevice() ); Color aLineCol( COL_BLACK ); ::std::stack< Color* > aLineColStack; @@ -2311,7 +2311,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf, { // write actions for hatch - ScopedVclPtr<VirtualDevice> aVDev = new VirtualDevice; + ScopedVclPtr<VirtualDevice> aVDev( new VirtualDevice() ); GDIMetaFile aTmpMtf; aVDev->AddHatchActions( rPolyPoly, rHatch, aTmpMtf ); |