Skip to content

Commit

Permalink
Merge pull request #89922 from brno32/override-gutter-icon-inner-clas…
Browse files Browse the repository at this point in the history
…s-method

Refactor check for overriden methods in inner classes
  • Loading branch information
akien-mga committed Mar 28, 2024
2 parents b23d7c3 + fcb0b8d commit 669fc36
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions editor/plugins/script_text_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1170,14 +1170,11 @@ void ScriptTextEditor::_update_connected_methods() {
continue;
}

// Account for inner classes
if (raw_name.contains(".")) {
// Strip inner class name from the method, and start from the right since
// our inner class might be inside another inner class
int pos = raw_name.rfind(".");
if (pos != -1) {
name = raw_name.substr(pos + 1);
}
// Account for inner classes by stripping the class names from the method,
// starting from the right since our inner class might be inside of another inner class.
int pos = raw_name.rfind(".");
if (pos != -1) {
name = raw_name.substr(pos + 1);
}

String found_base_class;
Expand Down

0 comments on commit 669fc36

Please sign in to comment.