diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:56:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:56:36 +0100 |
commit | 8b7036450f46c87f0b6f9ac40ccd69d5a57cac55 (patch) | |
tree | 82a39c86f09d4b4084c4ea5d6ff8897f6df76b98 /basegfx | |
parent | 1b59be1c9076f3d491a8893adc8de37323791db0 (diff) |
loplugin:loopvartoosmall
Change-Id: I085d409f3271c5a4d8237fa3e3c4a74bed296acb
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygoncutter.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx index 88cafdedcd39..f2cbf2123c92 100644 --- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx +++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx @@ -1047,16 +1047,17 @@ namespace basegfx const B2DRange aCandidateRange(aCandidate.getB2DRange()); bool bCouldMergeSimple(false); - for(sal_uInt32 b(0); !bCouldMergeSimple && b < aResult.size(); b++) + for(auto & b: aResult) { - basegfx::B2DPolyPolygon aTarget(aResult[b]); + basegfx::B2DPolyPolygon aTarget(b); const B2DRange aTargetRange(aTarget.getB2DRange()); if(!aCandidateRange.overlaps(aTargetRange)) { aTarget.append(aCandidate); - aResult[b] = aTarget; + b = aTarget; bCouldMergeSimple = true; + break; } } |