Use range iterators for Map
This commit is contained in:
parent
e4dfa69bcf
commit
c63b18507d
154 changed files with 1897 additions and 1897 deletions
|
|
@ -179,9 +179,9 @@ Error EditorFeatureProfile::save_to_file(const String &p_path) {
|
|||
|
||||
Array dis_props;
|
||||
|
||||
for (Map<StringName, Set<StringName>>::Element *E = disabled_properties.front(); E; E = E->next()) {
|
||||
for (Set<StringName>::Element *F = E->get().front(); F; F = F->next()) {
|
||||
dis_props.push_back(String(E->key()) + ":" + String(F->get()));
|
||||
for (KeyValue<StringName, Set<StringName>> &E : disabled_properties) {
|
||||
for (Set<StringName>::Element *F = E.value.front(); F; F = F->next()) {
|
||||
dis_props.push_back(String(E.key) + ":" + String(F->get()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue