diff options
-rw-r--r-- | drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx index 4c4406ee4a5a..9c52a19c32f7 100644 --- a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx @@ -107,7 +107,7 @@ namespace drawinglayer if(getPositions().size()) { // get the basic range from the position vector - for(std::vector< basegfx::B2DPoint >::const_iterator aIter(getPositions().begin()); aIter != getPositions().end(); aIter++) + for(std::vector< basegfx::B2DPoint >::const_iterator aIter(getPositions().begin()), aEnd(getPositions().end()); aIter != aEnd; ++aIter) { aRetval.expand(*aIter); } diff --git a/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx b/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx index 59c56e94adb4..23ade85643f2 100644 --- a/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx @@ -60,7 +60,7 @@ namespace drawinglayer basegfx::B2DRange aNewRange; // get the basic range from the position vector - for(std::vector< basegfx::B2DPoint >::const_iterator aIter(getPositions().begin()); aIter != getPositions().end(); aIter++) + for(std::vector< basegfx::B2DPoint >::const_iterator aIter(getPositions().begin()), aEnd(getPositions().end()); aIter != aEnd; ++aIter) { aNewRange.expand(*aIter); } |