File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1170,14 +1170,11 @@ void ScriptTextEditor::_update_connected_methods() {
11701170 continue ;
11711171 }
11721172
1173- // Account for inner classes
1174- if (raw_name.contains (" ." )) {
1175- // Strip inner class name from the method, and start from the right since
1176- // our inner class might be inside another inner class
1177- int pos = raw_name.rfind (" ." );
1178- if (pos != -1 ) {
1179- name = raw_name.substr (pos + 1 );
1180- }
1173+ // Account for inner classes by stripping the class names from the method,
1174+ // starting from the right since our inner class might be inside of another inner class.
1175+ int pos = raw_name.rfind (" ." );
1176+ if (pos != -1 ) {
1177+ name = raw_name.substr (pos + 1 );
11811178 }
11821179
11831180 String found_base_class;
You can’t perform that action at this time.
0 commit comments