You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
@@ -406,8 +406,8 @@ Error DirAccessPack::list_dir_begin() {
|
||||
list_dirs.push_back(E.key);
|
||||
}
|
||||
|
||||
for (RBSet<String>::Element *E = current->files.front(); E; E = E->next()) {
|
||||
list_files.push_back(E->get());
|
||||
for (const String &E : current->files) {
|
||||
list_files.push_back(E);
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user