diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygon.cxx | 7 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolygontriangulator.cxx | 6 | ||||
-rw-r--r-- | basegfx/source/polygon/b3dpolygon.cxx | 19 |
3 files changed, 10 insertions, 22 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx index 601f493c27b4..1a4d4a76da0c 100644 --- a/basegfx/source/polygon/b2dpolygon.cxx +++ b/basegfx/source/polygon/b2dpolygon.cxx @@ -186,12 +186,9 @@ public: void transform(const basegfx::B2DHomMatrix& rMatrix) { - CoordinateData2DVector::iterator aStart(maVector.begin()); - CoordinateData2DVector::iterator aEnd(maVector.end()); - - for(; aStart != aEnd; ++aStart) + for (auto & elem : maVector) { - aStart->transform(rMatrix); + elem.transform(rMatrix); } } }; diff --git a/basegfx/source/polygon/b2dpolygontriangulator.cxx b/basegfx/source/polygon/b2dpolygontriangulator.cxx index ed36a83b9a39..a2c740f91798 100644 --- a/basegfx/source/polygon/b2dpolygontriangulator.cxx +++ b/basegfx/source/polygon/b2dpolygontriangulator.cxx @@ -367,11 +367,9 @@ namespace basegfx Triangulator::~Triangulator() { - EdgeEntryPointers::iterator aIter(maNewEdgeEntries.begin()); - - while(aIter != maNewEdgeEntries.end()) + for (auto const& newEdgeEntry : maNewEdgeEntries) { - delete *aIter++; + delete newEdgeEntry; } } diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index 0a78614f4320..fc0ef2c23f22 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -226,12 +226,9 @@ public: void transform(const ::basegfx::B3DHomMatrix& rMatrix) { - CoordinateData3DVector::iterator aStart(maVector.begin()); - CoordinateData3DVector::iterator aEnd(maVector.end()); - - for(; aStart != aEnd; ++aStart) + for (auto & elem : maVector) { - aStart->transform(rMatrix); + elem.transform(rMatrix); } } }; @@ -532,11 +529,9 @@ public: void transform(const basegfx::B3DHomMatrix& rMatrix) { - const NormalsData3DVector::const_iterator aEnd(maVector.end()); - - for(NormalsData3DVector::iterator aStart(maVector.begin()); aStart != aEnd; ++aStart) + for (auto & elem : maVector) { - (*aStart) *= rMatrix; + elem *= rMatrix; } } }; @@ -689,11 +684,9 @@ public: void transform(const ::basegfx::B2DHomMatrix& rMatrix) { - const TextureData2DVector::const_iterator aEnd(maVector.end()); - - for(TextureData2DVector::iterator aStart(maVector.begin()); aStart != aEnd; ++aStart) + for (auto & elem : maVector) { - (*aStart) *= rMatrix; + elem *= rMatrix; } } }; |