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
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue