Use C++ iterators for Lists in many situations

This commit is contained in:
Aaron Franke
2021-07-15 23:45:57 -04:00
parent b918c4c3ce
commit 4e6efd1b07
218 changed files with 2755 additions and 3004 deletions

View File

@@ -340,8 +340,8 @@ void ProjectExportDialog::_update_feature_list() {
}
}
for (List<String>::Element *E = features.front(); E; E = E->next()) {
fset.insert(E->get());
for (String &E : features) {
fset.insert(E);
}
custom_feature_display->clear();
@@ -567,8 +567,8 @@ void ProjectExportDialog::_duplicate_preset() {
preset->set_exclude_filter(current->get_exclude_filter());
preset->set_custom_features(current->get_custom_features());
for (const List<PropertyInfo>::Element *E = current->get_properties().front(); E; E = E->next()) {
preset->set(E->get().name, current->get(E->get().name));
for (const PropertyInfo &E : current->get_properties()) {
preset->set(E.name, current->get(E.name));
}
EditorExport::get_singleton()->add_export_preset(preset);