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

@@ -848,8 +848,8 @@ PyObject* TopoShapeFacePy::cutHoles(PyObject *args)
if (!wires.empty()) {
const TopoDS_Face& f = TopoDS::Face(getTopoShapePtr()->getShape());
BRepBuilderAPI_MakeFace mkFace(f);
for (std::vector<TopoDS_Wire>::iterator it = wires.begin(); it != wires.end(); ++it)
mkFace.Add(*it);
for (const auto & wire : wires)
mkFace.Add(wire);
if (!mkFace.IsDone()) {
switch (mkFace.Error()) {
case BRepBuilderAPI_NoFace: