Use C++ iterators for Lists in many situations
This commit is contained in:
parent
b918c4c3ce
commit
4e6efd1b07
218 changed files with 2755 additions and 3004 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue