Kaydet (Commit) 6550f888 authored tarafından Julien Nabet's avatar Julien Nabet

Prefer prefix ++/-- operators for non-primitive types

+ use const_iterator for end iterator

Change-Id: Ib07b71bb878665126666db3569bd5a40e23eff5e
üst 8e890570
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment