Add contains_char() for single-character 'contains' calls.
This commit is contained in:
parent
eb5103093c
commit
b5c31ebb41
61 changed files with 108 additions and 99 deletions
|
|
@ -523,7 +523,7 @@ void ConnectDialog::set_dst_node(Node *p_node) {
|
|||
|
||||
StringName ConnectDialog::get_dst_method_name() const {
|
||||
String txt = dst_method->get_text();
|
||||
if (txt.contains("(")) {
|
||||
if (txt.contains_char('(')) {
|
||||
txt = txt.left(txt.find_char('(')).strip_edges();
|
||||
}
|
||||
return txt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue