loplugin:loopvartoosmall

Change-Id: I085d409f3271c5a4d8237fa3e3c4a74bed296acb
This commit is contained in:
Stephan Bergmann
2017-02-26 21:56:36 +01:00
parent 1b59be1c90
commit 8b7036450f

View File

@@ -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;
}
}