Use range iterators for Map
This commit is contained in:
@ -217,8 +217,8 @@ Array GDScriptTextDocument::completion(const Dictionary &p_params) {
|
||||
} else if (GDScriptLanguageProtocol::get_singleton()->is_smart_resolve_enabled()) {
|
||||
arr = native_member_completions.duplicate();
|
||||
|
||||
for (Map<String, ExtendGDScriptParser *>::Element *E = GDScriptLanguageProtocol::get_singleton()->get_workspace()->scripts.front(); E; E = E->next()) {
|
||||
ExtendGDScriptParser *script = E->get();
|
||||
for (KeyValue<String, ExtendGDScriptParser *> &E : GDScriptLanguageProtocol::get_singleton()->get_workspace()->scripts) {
|
||||
ExtendGDScriptParser *script = E.value;
|
||||
const Array &items = script->get_member_completions();
|
||||
|
||||
const int start_size = arr.size();
|
||||
|
||||
Reference in New Issue
Block a user