mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
parent
71c40ff4da
commit
900c676b02
84 changed files with 782 additions and 782 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue