PD: modernize C++: use range-based for loop
This commit is contained in:
@@ -536,10 +536,8 @@ void Pipe::buildPipePath(const Part::TopoShape& shape, const std::vector<std::st
|
||||
//getContinuousEdges(shape, subedge);
|
||||
|
||||
BRepBuilderAPI_MakeWire mkWire;
|
||||
for (std::vector<std::string>::const_iterator it = subedge.begin();
|
||||
it != subedge.end();
|
||||
++it) {
|
||||
TopoDS_Shape subshape = shape.getSubShape(it->c_str());
|
||||
for (const auto & it : subedge) {
|
||||
TopoDS_Shape subshape = shape.getSubShape(it.c_str());
|
||||
mkWire.Add(TopoDS::Edge(subshape));
|
||||
}
|
||||
path = mkWire.Wire();
|
||||
|
||||
Reference in New Issue
Block a user