You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-21 14:57:09 +00:00
Use range iterators for Map
This commit is contained in:
@@ -86,9 +86,9 @@ void ImportDefaultsEditor::_save() {
|
||||
if (settings->importer.is_valid()) {
|
||||
Dictionary modified;
|
||||
|
||||
for (Map<StringName, Variant>::Element *E = settings->values.front(); E; E = E->next()) {
|
||||
if (E->get() != settings->default_values[E->key()]) {
|
||||
modified[E->key()] = E->get();
|
||||
for (const KeyValue<StringName, Variant> &E : settings->values) {
|
||||
if (E.value != settings->default_values[E.key]) {
|
||||
modified[E.key] = E.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user