summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/code_completion.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-07-27 08:05:15 +0200
committerGitHub <noreply@github.com>2021-07-27 08:05:15 +0200
commit7cbdb9b4c36dfd44ab120d5bce37f0a27439ca6b (patch)
tree5cee0ad9c78b8abff48bfff6280fa055d352d998 /modules/mono/editor/code_completion.cpp
parentae1b124e1432beb8d25ee4a89f6a5c9af2876ea8 (diff)
parent3fe67fb5ad1b8fd7c5e099190de31e9d9e08d0d2 (diff)
downloadredot-engine-7cbdb9b4c36dfd44ab120d5bce37f0a27439ca6b.tar.gz
Merge pull request #50917 from raulsntos/more-iterators
Diffstat (limited to 'modules/mono/editor/code_completion.cpp')
-rw-r--r--modules/mono/editor/code_completion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/editor/code_completion.cpp b/modules/mono/editor/code_completion.cpp
index fa7d418844..b7b36a92d8 100644
--- a/modules/mono/editor/code_completion.cpp
+++ b/modules/mono/editor/code_completion.cpp
@@ -123,8 +123,8 @@ PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_scr
// AutoLoads
Map<StringName, ProjectSettings::AutoloadInfo> autoloads = ProjectSettings::get_singleton()->get_autoload_list();
- for (Map<StringName, ProjectSettings::AutoloadInfo>::Element *E = autoloads.front(); E; E = E->next()) {
- const ProjectSettings::AutoloadInfo &info = E->value();
+ for (const KeyValue<StringName, ProjectSettings::AutoloadInfo> &E : autoloads) {
+ const ProjectSettings::AutoloadInfo &info = E.value;
suggestions.push_back(quoted("/root/" + String(info.name)));
}
}