summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-03-01 16:24:12 +0100
committerDavid Tardon <dtardon@redhat.com>2015-03-01 17:33:56 +0100
commit2e8fccad27af4e4ee52081e84e10b0e2e55692eb (patch)
treef0bc27a0a3961c8b4b8e96d8569991d18abd9d9a /svx
parent3f18467049cf0843730335c6bb0a09aa1df189f6 (diff)
initialize iterator at construction
Change-Id: I8ec59c89b3b8d44b99d3e1296fe217a1630607b4
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/polypolygoneditor.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/polypolygoneditor.cxx b/svx/source/svdraw/polypolygoneditor.cxx
index 594c2ae0f4e0..8e91c7720d4a 100644
--- a/svx/source/svdraw/polypolygoneditor.cxx
+++ b/svx/source/svdraw/polypolygoneditor.cxx
@@ -35,8 +35,8 @@ bool PolyPolygonEditor::DeletePoints( const std::set< sal_uInt16 >& rAbsPoints )
{
bool bPolyPolyChanged = false;
- std::set< sal_uInt16 >::const_reverse_iterator aIter;( rAbsPoints.rbegin() );
- for( aIter = rAbsPoints.rbegin(); aIter != rAbsPoints.rend(); ++aIter )
+ std::set< sal_uInt16 >::const_reverse_iterator aIter( rAbsPoints.rbegin() );
+ for( ; aIter != rAbsPoints.rend(); ++aIter )
{
sal_uInt32 nPoly, nPnt;
if( GetRelativePolyPoint(maPolyPolygon,(*aIter), nPoly, nPnt) )
@@ -66,8 +66,8 @@ bool PolyPolygonEditor::SetSegmentsKind(SdrPathSegmentKind eKind, const std::set
{
bool bPolyPolyChanged = false;
- std::set< sal_uInt16 >::const_reverse_iterator aIter;( rAbsPoints.rbegin() );
- for( aIter = rAbsPoints.rbegin(); aIter != rAbsPoints.rend(); ++aIter )
+ std::set< sal_uInt16 >::const_reverse_iterator aIter( rAbsPoints.rbegin() );
+ for( ; aIter != rAbsPoints.rend(); ++aIter )
{
sal_uInt32 nPolyNum, nPntNum;
@@ -126,8 +126,8 @@ bool PolyPolygonEditor::SetPointsSmooth( basegfx::B2VectorContinuity eFlags, con
{
bool bPolyPolygonChanged(false);
- std::set< sal_uInt16 >::const_reverse_iterator aIter;( rAbsPoints.rbegin() );
- for( aIter = rAbsPoints.rbegin(); aIter != rAbsPoints.rend(); ++aIter )
+ std::set< sal_uInt16 >::const_reverse_iterator aIter( rAbsPoints.rbegin() );
+ for( ; aIter != rAbsPoints.rend(); ++aIter )
{
sal_uInt32 nPolyNum, nPntNum;