summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-20 18:58:34 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:01:49 +0100
commitad8a2074c6143d3ce05c0a5d93a553c13b950520 (patch)
tree2f47189a78e80d478a15a3360906131fc9c16428 /drawinglayer
parent8fb4672aef888fc5a582ca9508799ecdbe777c42 (diff)
cure a lot of unfortunate ScopedVclPtrs.
Change-Id: I2149511f958ba75e81dc41b10b01eb9d19610037
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx4
-rw-r--r--drawinglayer/source/tools/converters.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 935b0b5e9d53..8b26870142ec 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -252,7 +252,7 @@ namespace drawinglayer
const Rectangle aPrimitiveRectangle(
basegfx::fround(aPrimitiveRange.getMinX()), basegfx::fround(aPrimitiveRange.getMinY()),
basegfx::fround(aPrimitiveRange.getMaxX()), basegfx::fround(aPrimitiveRange.getMaxY()));
- ScopedVclPtr<VirtualDevice> aContentVDev = new VirtualDevice;
+ ScopedVclPtr<VirtualDevice> aContentVDev( new VirtualDevice() );
MapMode aNewMapMode(pLastOutputDevice->GetMapMode());
mpOutputDevice = aContentVDev.get();
@@ -2016,7 +2016,7 @@ namespace drawinglayer
const Rectangle aRectPixel(mpOutputDevice->LogicToPixel(aRectLogic));
Size aSizePixel(aRectPixel.GetSize());
const Point aEmptyPoint;
- ScopedVclPtr<VirtualDevice> aBufferDevice = new VirtualDevice;
+ ScopedVclPtr<VirtualDevice> aBufferDevice( new VirtualDevice() );
const sal_uInt32 nMaxQuadratPixels(500000);
const sal_uInt32 nViewVisibleArea(aSizePixel.getWidth() * aSizePixel.getHeight());
double fReduceFactor(1.0);
diff --git a/drawinglayer/source/tools/converters.cxx b/drawinglayer/source/tools/converters.cxx
index e06356cabc82..e64f7d3d84e0 100644
--- a/drawinglayer/source/tools/converters.cxx
+++ b/drawinglayer/source/tools/converters.cxx
@@ -73,7 +73,7 @@ namespace drawinglayer
const Point aEmptyPoint;
const Size aSizePixel(nDiscreteWidth, nDiscreteHeight);
geometry::ViewInformation2D aViewInformation2D(rViewInformation2D);
- ScopedVclPtr<VirtualDevice> maContent = new VirtualDevice;
+ ScopedVclPtr<VirtualDevice> maContent(new VirtualDevice());
// prepare vdev
maContent->SetOutputSizePixel(aSizePixel, false);