summaryrefslogtreecommitdiff
path: root/vcl/backendtest
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-01 11:01:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-01 12:19:27 +0200
commitcc2b7c1f930bc05253153f3c8381fb4fb352f3ca (patch)
tree0a285ec4c67933a58fcf4ca991bfc745e715e059 /vcl/backendtest
parent5ed9f4638e1ff12b3246a66ffee8dd9dd74b9693 (diff)
loplugin:reducevarscope in vcl
Change-Id: I768aa9bd87913bc20351fb631a6326fe01f777b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103748 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/backendtest')
-rw-r--r--vcl/backendtest/VisualBackendTest.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx
index 8473dc193012..0383dfab6a2d 100644
--- a/vcl/backendtest/VisualBackendTest.cxx
+++ b/vcl/backendtest/VisualBackendTest.cxx
@@ -662,9 +662,6 @@ public:
long nWidth = aSize.Width();
long nHeight = aSize.Height();
- tools::Rectangle aRectangle;
- size_t index = 0;
-
if (mnTest % gnNumberOfTests == 0)
{
testRectangles(rRenderContext, nWidth, nHeight, false);
@@ -704,8 +701,9 @@ public:
else if (mnTest % gnNumberOfTests == 9)
{
std::vector<tools::Rectangle> aRegions = setupRegions(2, 1, nWidth, nHeight);
+ size_t index = 0;
- aRectangle = aRegions[index++];
+ tools::Rectangle aRectangle = aRegions[index++];
{
vcl::test::OutputDeviceTestAnotherOutDev aOutDevTest;
Bitmap aBitmap = aOutDevTest.setupDrawOutDev();