You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
@@ -62,9 +62,9 @@ Array ResourcePreloader::_get_resources() const {
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
for (RBSet<String>::Element *E = sorted_names.front(); E; E = E->next()) {
|
||||
names.set(i, E->get());
|
||||
arr[i] = resources[E->get()];
|
||||
for (const String &E : sorted_names) {
|
||||
names.set(i, E);
|
||||
arr[i] = resources[E];
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user