diff options
| author | Lightning_A <aaronjrecord@gmail.com> | 2021-08-09 14:13:42 -0600 |
|---|---|---|
| committer | Lightning_A <aaronjrecord@gmail.com> | 2021-09-30 15:09:12 -0600 |
| commit | c63b18507d21b8a213c073bced9057b571cdcd7a (patch) | |
| tree | 96b8f7532ae5d923b75bfbac8d6763015b6646bb /editor/script_create_dialog.cpp | |
| parent | e4dfa69bcf58e4d50acdde32c590364e43fce3ab (diff) | |
| download | redot-engine-c63b18507d21b8a213c073bced9057b571cdcd7a.tar.gz | |
Use range iterators for `Map`
Diffstat (limited to 'editor/script_create_dialog.cpp')
| -rw-r--r-- | editor/script_create_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 4cbc859e0c..1e19d9bd47 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -425,8 +425,8 @@ void ScriptCreateDialog::_lang_changed(int l) { templates[i].id = new_id; } // Disable overridden - for (Map<String, Vector<int>>::Element *E = template_overrides.front(); E; E = E->next()) { - const Vector<int> &overrides = E->get(); + for (const KeyValue<String, Vector<int>> &E : template_overrides) { + const Vector<int> &overrides = E.value; if (overrides.size() == 1) { continue; // doesn't override anything |
