From 6550f88834d31ddb678da74d074d1142cc8d030c Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 29 Mar 2013 06:43:17 +0100 Subject: Prefer prefix ++/-- operators for non-primitive types + use const_iterator for end iterator Change-Id: Ib07b71bb878665126666db3569bd5a40e23eff5e --- drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx | 2 +- drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drawinglayer') 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); } -- cgit