PD: modernize C++: use range-based for loop
This commit is contained in:
@@ -65,12 +65,12 @@ bool ViewProviderMultiTransform::onDelete(const std::vector<std::string> &svec)
|
||||
std::vector<App::DocumentObject*> transformFeatures = pcMultiTransform->Transformations.getValues();
|
||||
|
||||
// if the multitransform object was deleted the transformed features must be deleted, too
|
||||
for (std::vector<App::DocumentObject*>::const_iterator it = transformFeatures.begin(); it != transformFeatures.end(); ++it)
|
||||
{
|
||||
if (*it)
|
||||
for (auto it : transformFeatures) {
|
||||
if (it) {
|
||||
Gui::Command::doCommand(
|
||||
Gui::Command::Doc,"App.getDocument('%s').removeObject(\"%s\")", \
|
||||
(*it)->getDocument()->getName(), (*it)->getNameInDocument());
|
||||
it->getDocument()->getName(), it->getNameInDocument());
|
||||
}
|
||||
}
|
||||
|
||||
// Handle Originals
|
||||
|
||||
Reference in New Issue
Block a user