Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user