Import: modernize C++: use range-based for loop

This commit is contained in:
wmayer
2023-08-14 19:44:33 +02:00
committed by wwmayer
parent e09d8aaba6
commit 26ea9e4ea4

View File

@@ -164,8 +164,8 @@ void ImportOCAF::loadShapes(const TDF_Label& label, const TopLoc_Location& loc,
}
else {
bool ws=true;
for (std::string::iterator it = part_name.begin(); it != part_name.end(); ++it) {
if (*it != ' ') {
for (char it : part_name) {
if (it != ' ') {
ws = false;
break;
}