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

@@ -190,12 +190,12 @@ bool ViewProviderCurveNet::handleEvent(const SoEvent * const ev, Gui::View3DInve
Base::Console().Log("ViewProviderCurveNet::handleEvent() press left\n");
bool bIsNode = false;
for (std::list<Node>::iterator It = NodeList.begin();It != NodeList.end(); It++)
for (const auto & It : NodeList)
{
if (It->pcHighlight->isHighlighted())
if (It.pcHighlight->isHighlighted())
{
bIsNode = true;
PointToMove = *It;
PointToMove = It;
break;
}
}