drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx | 2 +- drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 6550f88834d31ddb678da74d074d1142cc8d030c Author: Julien Nabet <[email protected]> Date: Fri Mar 29 06:43:17 2013 +0100 Prefer prefix ++/-- operators for non-primitive types + use const_iterator for end iterator Change-Id: Ib07b71bb878665126666db3569bd5a40e23eff5e diff --git a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx index 4c4406e..9c52a19 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 59c56e94..23ade85 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); } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
