diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-20 15:50:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-20 15:50:17 +0200 |
commit | b8bc9023a3190cd93150fb14c2e37ad4deb8b435 (patch) | |
tree | 9803ef0da4356b5768e028bf6dfc4233327c16e9 /sc/source/core | |
parent | 8e934e79407fba1b0ba564dbaf295a2102d557a4 (diff) |
sc: convert new to ::Create
Change-Id: I196ef015660a2d87a33957ed3442341001f4a303
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/documen8.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx index 50cc31d177a5..4867827fac2f 100644 --- a/sc/source/core/data/documen8.cxx +++ b/sc/source/core/data/documen8.cxx @@ -138,7 +138,7 @@ SfxPrinter* ScDocument::GetPrinter(bool bCreateIfNotExist) pSet->Put( SfxFlagItem( SID_PRINTER_CHANGESTODOC, static_cast<int>(nFlags) ) ); pSet->Put( SfxBoolItem( SID_PRINTER_NOTFOUND_WARN, aMisc.IsNotFoundWarning() ) ); - pPrinter = new SfxPrinter( pSet ); + pPrinter = VclPtr<SfxPrinter>::Create( pSet ); pPrinter->SetMapMode( MAP_100TH_MM ); UpdateDrawPrinter(); pPrinter->SetDigitLanguage( SC_MOD()->GetOptDigitLanguage() ); @@ -193,9 +193,9 @@ VirtualDevice* ScDocument::GetVirtualDevice_100th_mm() if (!pVirtualDevice_100th_mm) { #ifdef IOS - pVirtualDevice_100th_mm = new VirtualDevice( 8 ); + pVirtualDevice_100th_mm = VclPtr<VirtualDevice>::Create( 8 ); #else - pVirtualDevice_100th_mm = new VirtualDevice( 1 ); + pVirtualDevice_100th_mm = VclPtr<VirtualDevice>::Create( 1 ); #endif pVirtualDevice_100th_mm->SetReferenceDevice(VirtualDevice::REFDEV_MODE_MSO1); MapMode aMapMode( pVirtualDevice_100th_mm->GetMapMode() ); |