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

This commit is contained in:
wmayer
2023-08-15 17:28:50 +02:00
committed by Chris Hennes
parent 9a1f8a11d6
commit 312975edba
49 changed files with 364 additions and 365 deletions

View File

@@ -1093,8 +1093,8 @@ PyObject* GeometryCurvePy::intersectCC(PyObject *args)
}
Py::List points;
for (size_t i = 0; i < pairs.size(); i++) {
points.append(Py::asObject(new PointPy(new GeomPoint(pairs[i].first))));
for (const auto & pair : pairs) {
points.append(Py::asObject(new PointPy(new GeomPoint(pair.first))));
}
return Py::new_reference_to(points);