You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -253,8 +253,8 @@ CPUParticles2DEditorPlugin::CPUParticles2DEditorPlugin(EditorNode *p_node) {
|
||||
file = memnew(EditorFileDialog);
|
||||
List<String> ext;
|
||||
ImageLoader::get_recognized_extensions(&ext);
|
||||
for (List<String>::Element *E = ext.front(); E; E = E->next()) {
|
||||
file->add_filter("*." + E->get() + "; " + E->get().to_upper());
|
||||
for (String &E : ext) {
|
||||
file->add_filter("*." + E + "; " + E.to_upper());
|
||||
}
|
||||
file->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILE);
|
||||
toolbar->add_child(file);
|
||||
|
||||
Reference in New Issue
Block a user