modernize a for loop

This commit is contained in:
Uwe
2023-01-25 03:43:45 +01:00
committed by Chris Hennes
parent 5f91493d49
commit 64caea2073

View File

@@ -151,9 +151,8 @@ SectionCut::SectionCut(QWidget* parent)
// the cutting is started when only an existing cut was visible
std::vector<App::DocumentObject*> compoundObjects;
pcCompound->Links.getLinks(compoundObjects);
for (auto itCompound = compoundObjects.begin(); itCompound != compoundObjects.end();
itCompound++) {
App::Link* pcLink = dynamic_cast<App::Link*>(*itCompound);
for (auto aCompoundObj : compoundObjects) {
App::Link* pcLink = dynamic_cast<App::Link*>(aCompoundObj);
auto LinkedObject = pcLink->getLink();
// only if not already visible
if (!(LinkedObject->Visibility.getValue())) {