You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use C++ iterators for Lists in many situations
This commit is contained in:
@@ -854,9 +854,7 @@ void CodeTextEditor::_complete_request() {
|
||||
return;
|
||||
}
|
||||
|
||||
for (List<ScriptCodeCompletionOption>::Element *E = entries.front(); E; E = E->next()) {
|
||||
ScriptCodeCompletionOption &e = E->get();
|
||||
|
||||
for (ScriptCodeCompletionOption &e : entries) {
|
||||
Color font_color = completion_font_color;
|
||||
if (e.insert_text.begins_with("\"") || e.insert_text.begins_with("\'")) {
|
||||
font_color = completion_string_color;
|
||||
|
||||
Reference in New Issue
Block a user