diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-01 12:06:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-01 12:06:35 +0200 |
commit | d17eac735cc84abd9afd1e083df1a4e8a2c8e656 (patch) | |
tree | d006c3a5457edbde9e4f9016b48d0968d70e3ce5 /editor/plugins/script_text_editor.cpp | |
parent | b62041d1f3b6428974d5be7ad9d378a445d432ac (diff) | |
parent | d2833d4f4d891b6a0ee32a04f9d32a410b998b93 (diff) | |
download | redot-engine-d17eac735cc84abd9afd1e083df1a4e8a2c8e656.tar.gz |
Merge pull request #29815 from NilsIrl/plus_file_1
Replace ` + "/" + ` with `String::file_add()`
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 9bf3a9f0eb..9c57dd53f1 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -574,8 +574,8 @@ void ScriptTextEditor::_validate_script() { Connection connection = E->get(); String base_path = base->get_name(); - String source_path = base == connection.source ? base_path : base_path + "/" + String(base->get_path_to(Object::cast_to<Node>(connection.source))); - String target_path = base == connection.target ? base_path : base_path + "/" + String(base->get_path_to(Object::cast_to<Node>(connection.target))); + String source_path = base == connection.source ? base_path : base_path + "/" + base->get_path_to(Object::cast_to<Node>(connection.source)); + String target_path = base == connection.target ? base_path : base_path + "/" + base->get_path_to(Object::cast_to<Node>(connection.target)); warnings_panel->push_cell(); warnings_panel->push_color(warnings_panel->get_color("warning_color", "Editor")); |