Part: modernize C++: use range-based for loop
This commit is contained in:
@@ -111,8 +111,8 @@ void BoxSelection::selectionCallback(void * ud, SoEventCallback * cb)
|
||||
polygon.Add(Base::Vector2d(pt2[0], pt1[1]));
|
||||
}
|
||||
else {
|
||||
for (std::vector<SbVec2f>::const_iterator it = picked.begin(); it != picked.end(); ++it)
|
||||
polygon.Add(Base::Vector2d((*it)[0],(*it)[1]));
|
||||
for (const auto& it : picked)
|
||||
polygon.Add(Base::Vector2d(it[0],it[1]));
|
||||
}
|
||||
|
||||
BoxSelection* self = static_cast<BoxSelection*>(ud);
|
||||
|
||||
Reference in New Issue
Block a user