Part: modernize C++: use range-based for loop
This commit is contained in:
@@ -75,9 +75,9 @@ void ShapeFromMesh::perform()
|
||||
Gui::doCommandT(Gui::Command::Doc, "import Part");
|
||||
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Convert mesh"));
|
||||
|
||||
for (auto it = meshes.begin(); it != meshes.end(); ++it) {
|
||||
App::Document* doc = (*it)->getDocument();
|
||||
std::string mesh = (*it)->getNameInDocument();
|
||||
for (auto it : meshes) {
|
||||
App::Document* doc = it->getDocument();
|
||||
std::string mesh = it->getNameInDocument();
|
||||
std::string name = doc->getUniqueObjectName(mesh.c_str());
|
||||
|
||||
Gui::cmdAppDocumentArgs(doc, "addObject('%s', '%s')", "Part::Feature", name);
|
||||
|
||||
Reference in New Issue
Block a user