You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Use initializer list in Arrays
This commit is contained in:
@@ -1940,15 +1940,7 @@ CodeTextEditor::CodeTextEditor() {
|
||||
text_editor->connect("caret_changed", callable_mp(this, &CodeTextEditor::_line_col_changed));
|
||||
text_editor->connect(SceneStringName(text_changed), callable_mp(this, &CodeTextEditor::_text_changed));
|
||||
text_editor->connect("code_completion_requested", callable_mp(this, &CodeTextEditor::_complete_request));
|
||||
TypedArray<String> cs;
|
||||
cs.push_back(".");
|
||||
cs.push_back(",");
|
||||
cs.push_back("(");
|
||||
cs.push_back("=");
|
||||
cs.push_back("$");
|
||||
cs.push_back("@");
|
||||
cs.push_back("\"");
|
||||
cs.push_back("\'");
|
||||
TypedArray<String> cs = { ".", ",", "(", "=", "$", "@", "\"", "\'" };
|
||||
text_editor->set_code_completion_prefixes(cs);
|
||||
idle->connect("timeout", callable_mp(this, &CodeTextEditor::_text_changed_idle_timeout));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user