From dc135ac4c097ef286de8a5ef4eff94e793567346 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 4 May 2011 22:58:22 +0200 Subject: Some cppcheck cleaning --- basegfx/source/polygon/b2dpolygon.cxx | 16 ++++++++-------- basegfx/source/polygon/b2dpolypolygon.cxx | 2 +- basegfx/source/polygon/b3dpolygon.cxx | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'basegfx/source') diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx index 928902090b66..a7524ddcf5fe 100644 --- a/basegfx/source/polygon/b2dpolygon.cxx +++ b/basegfx/source/polygon/b2dpolygon.cxx @@ -168,8 +168,8 @@ public: for(sal_uInt32 a(0); a < nHalfSize; a++) { ::std::swap(*aStart, *aEnd); - aStart++; - aEnd--; + ++aStart; + --aEnd; } } } @@ -210,7 +210,7 @@ public: CoordinateData2DVector::iterator aStart(maVector.begin()); CoordinateData2DVector::iterator aEnd(maVector.end()); - for(; aStart != aEnd; aStart++) + for(; aStart != aEnd; ++aStart) { aStart->transform(rMatrix); } @@ -317,7 +317,7 @@ public: aEnd += nCount; maVector.reserve(nCount); - for(; aStart != aEnd; aStart++) + for(; aStart != aEnd; ++aStart) { if(!aStart->getPrevVector().equalZero()) mnUsedVectors++; @@ -449,7 +449,7 @@ public: ControlVectorPair2DVector::const_iterator aEnd(rSource.maVector.end()); maVector.insert(aIndex, aStart, aEnd); - for(; aStart != aEnd; aStart++) + for(; aStart != aEnd; ++aStart) { if(!aStart->getPrevVector().equalZero()) mnUsedVectors++; @@ -468,7 +468,7 @@ public: const ControlVectorPair2DVector::iterator aDeleteEnd(aDeleteStart + nCount); ControlVectorPair2DVector::const_iterator aStart(aDeleteStart); - for(; mnUsedVectors && aStart != aDeleteEnd; aStart++) + for(; mnUsedVectors && aStart != aDeleteEnd; ++aStart) { if(!aStart->getPrevVector().equalZero()) mnUsedVectors--; @@ -501,8 +501,8 @@ public: // swap entries ::std::swap(*aStart, *aEnd); - aStart++; - aEnd--; + ++aStart; + --aEnd; } if(aStart == aEnd) diff --git a/basegfx/source/polygon/b2dpolypolygon.cxx b/basegfx/source/polygon/b2dpolypolygon.cxx index af337a5bcc75..4c8ab7b44a45 100644 --- a/basegfx/source/polygon/b2dpolypolygon.cxx +++ b/basegfx/source/polygon/b2dpolypolygon.cxx @@ -105,7 +105,7 @@ public: for(sal_uInt32 a(0L); a < nCount; a++) { aIndex = maPolygons.insert(aIndex, rPolyPolygon.getB2DPolygon(a)); - aIndex++; + ++aIndex; } } } diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index 019ed0fff970..06d01fc4cc29 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -242,8 +242,8 @@ public: for(sal_uInt32 a(0); a < nHalfSize; a++) { ::std::swap(*aStart, *aEnd); - aStart++; - aEnd--; + ++aStart; + --aEnd; } } } @@ -253,7 +253,7 @@ public: CoordinateData3DVector::iterator aStart(maVector.begin()); CoordinateData3DVector::iterator aEnd(maVector.end()); - for(; aStart != aEnd; aStart++) + for(; aStart != aEnd; ++aStart) { aStart->transform(rMatrix); } -- cgit v1.2.3