diff options
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygontools.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx index 20c92eef08bc..305934579ec5 100644 --- a/basegfx/source/polygon/b2dpolypolygontools.cxx +++ b/basegfx/source/polygon/b2dpolypolygontools.cxx @@ -174,15 +174,7 @@ namespace basegfx } else { - sal_Int32 nInsideCount(0); - - for(auto const& rPolygon : rCandidate) - { - if(isInside(rPolygon, rPoint, bWithBorder)) - { - nInsideCount++; - } - } + sal_Int32 nInsideCount = std::count_if(rCandidate.begin(), rCandidate.end(), [rPoint, bWithBorder](B2DPolygon polygon){ return isInside(polygon, rPoint, bWithBorder); }); return (nInsideCount % 2); } |