summaryrefslogtreecommitdiff
path: root/basegfx/source/raster
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2018-09-08 10:41:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-11 15:00:23 +0200
commita1949a419e2e4bec52906bb163b0cf510fe2aa14 (patch)
treec3fd3b0f1ba6e57c954a4a39d6de305fe4c999fa /basegfx/source/raster
parent7430dfe2a4a3b13ffa248bf14a3a2ca87993f48d (diff)
cppcheck: variableScope in basegfx
and use range based loops on B2DPolyPolygon Change-Id: Ic68c236c839766a0c52369ae8487de187d1ad04e Reviewed-on: https://gerrit.libreoffice.org/60189 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/raster')
-rw-r--r--basegfx/source/raster/rasterconvert3d.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basegfx/source/raster/rasterconvert3d.cxx b/basegfx/source/raster/rasterconvert3d.cxx
index 8e1ab3b6d9d8..3ed2a1a250bc 100644
--- a/basegfx/source/raster/rasterconvert3d.cxx
+++ b/basegfx/source/raster/rasterconvert3d.cxx
@@ -69,7 +69,6 @@ namespace basegfx
std::vector< RasterConversionLineEntry3D* > aCurrentLine;
std::vector< RasterConversionLineEntry3D* > aNextLine;
std::vector< RasterConversionLineEntry3D* >::iterator aRasterConversionLineEntry3D;
- sal_uInt32 nPairCount(0);
// get scanlines first LineNumber as start
sal_Int32 nLineNumber(std::max(aCurrentEntry->getY(), nStartLine));
@@ -117,7 +116,7 @@ namespace basegfx
// process current scanline
aRasterConversionLineEntry3D = aCurrentLine.begin();
aNextLine.clear();
- nPairCount = 0;
+ sal_uInt32 nPairCount(0);
while(aRasterConversionLineEntry3D != aCurrentLine.end())
{