Base: modernize C++: use range-based for loop

This commit is contained in:
wmayer
2023-08-14 13:40:11 +02:00
committed by wwmayer
parent 2fd17be361
commit 367cdb36ed
13 changed files with 104 additions and 100 deletions

View File

@@ -394,10 +394,10 @@ void Polygon2d::Intersect (const Polygon2d &rclPolygon, std::list<Polygon2d> &rc
if (afIntersections.size() > 0) // intersections founded
{
for (std::set<double>::iterator pF = afIntersections.begin(); pF != afIntersections.end(); ++pF)
for (double it : afIntersections)
{
// intersection point
Vector2d clPtIS = clLine.FromPos(*pF);
Vector2d clPtIS = clLine.FromPos(it);
if (bInner)
{
clResultPolygon.Add(clPtIS);