Commit b9914c66 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[brepwriter] use range-based for where possible

parent 3e273cc9
......@@ -201,18 +201,12 @@ private:
void makeSubShapeMaps_(const ContainedEntityNetwork& network)
{
for (auto id : network.subDomainIds())
{
const auto& sdFragments = network.subDomainFragments(id);
for (TopTools_ListIteratorOfListOfShape it(sdFragments); it.More(); it.Next())
addSolids_(it.Value(), id.get());
}
for (const auto& fragment : network.subDomainFragments(id))
addSolids_(fragment, id.get());
for (auto id : network.subDomainIds())
{
const auto& sdEntityFragments = network.subDomainEntityFragments(id);
for (TopTools_ListIteratorOfListOfShape it(sdEntityFragments); it.More(); it.Next())
addFaces_(it.Value());
}
for (const auto& fragment : network.subDomainEntityFragments(id))
addFaces_(fragment);
}
/*!
......@@ -221,9 +215,8 @@ private:
*/
void makeSubShapeMaps_(const EntityNetwork& network)
{
const auto& sdEntityFragments = network.entityFragments();
for (TopTools_ListIteratorOfListOfShape it(sdEntityFragments); it.More(); it.Next())
addFaces_(it.Value());
for (const auto& fragment : network.entityFragments())
addFaces_(fragment);
}
/*!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment