You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
@@ -1307,8 +1307,8 @@ void Theme::get_type_list(List<StringName> *p_list) const {
|
||||
types.insert(E.key);
|
||||
}
|
||||
|
||||
for (RBSet<StringName>::Element *E = types.front(); E; E = E->next()) {
|
||||
p_list->push_back(E->get());
|
||||
for (const StringName &E : types) {
|
||||
p_list->push_back(E);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user