summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-01 14:02:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-01 15:00:52 +0200
commit18d4e89fdd63479e20d096c3a578153aa4328aee (patch)
tree005c5a618d702e2d5e333262bdff0c8fe224f64e /canvas
parent762aacc4e055fffbc605be81f66f2274dccb4be8 (diff)
loplugin:reducevarscope in canvas,chart2
Change-Id: I6c73e609cc8ce0ed9cf0f5a6b68c6e299bf26a44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103761 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/vcl/spritehelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/vcl/spritehelper.cxx b/canvas/source/vcl/spritehelper.cxx
index e52bb211020c..14be26c2aa6c 100644
--- a/canvas/source/vcl/spritehelper.cxx
+++ b/canvas/source/vcl/spritehelper.cxx
@@ -101,7 +101,6 @@ namespace vclcanvas
if( !isActive() || ::basegfx::fTools::equalZero( fAlpha ) )
return;
- const Point aEmptyPoint;
const ::basegfx::B2DVector& rOrigOutputSize( getSizePixel() );
// might get changed below (e.g. adapted for
@@ -128,6 +127,7 @@ namespace vclcanvas
if( bNeedBitmapUpdate )
{
+ const Point aEmptyPoint;
BitmapEx aBmp( mpBackBuffer->getOutDev().GetBitmapEx( aEmptyPoint,
aOutputSize ) );