summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-29 06:43:17 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-29 06:43:17 +0100
commit6550f88834d31ddb678da74d074d1142cc8d030c (patch)
tree99f8e3762bf581cd6bad987a395941d75e227100 /drawinglayer
parent8e890570515bd33137b0b17d870c31c6a224930a (diff)
Prefer prefix ++/-- operators for non-primitive types
+ use const_iterator for end iterator Change-Id: Ib07b71bb878665126666db3569bd5a40e23eff5e
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx2
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);
}