Use C++ iterators for Lists in many situations
This commit is contained in:
parent
b918c4c3ce
commit
4e6efd1b07
218 changed files with 2755 additions and 3004 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue