summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-09-05 11:53:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-10 17:11:00 +0100
commit242320d303d43a34ce2255a07783fbd51e253cd0 (patch)
tree14bd7757a57784a18d1aa2b731eb71999d14bf94 /drawinglayer
parent8523fb2b37a2cdd2c3743795bb33cf30a57c5385 (diff)
new loplugin:reducevarscope
Change-Id: Iefe922c2e0d605114d54673d63eccc5e4abd545d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102143 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 27e21a881540..526f00518910 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -2202,7 +2202,6 @@ void VclMetafileProcessor2D::processTransparencePrimitive2D(
static_cast<sal_Int32>(ceil(aViewRange.getMaxY())));
const tools::Rectangle aRectPixel(mpOutputDevice->LogicToPixel(aRectLogic));
Size aSizePixel(aRectPixel.GetSize());
- const Point aEmptyPoint;
ScopedVclPtrInstance<VirtualDevice> aBufferDevice;
const sal_uInt32 nMaxQuadratPixels(500000);
const sal_uInt32 nViewVisibleArea(aSizePixel.getWidth() * aSizePixel.getHeight());
@@ -2258,6 +2257,7 @@ void VclMetafileProcessor2D::processTransparencePrimitive2D(
VclPixelProcessor2D aBufferProcessor(aViewInfo, *aBufferDevice);
// draw content using pixel renderer
+ const Point aEmptyPoint;
aBufferProcessor.process(rContent);
const Bitmap aBmContent(aBufferDevice->GetBitmap(aEmptyPoint, aSizePixel));