Merge pull request #89922 from brno32/override-gutter-icon-inner-class-method
Refactor check for overriden methods in inner classes
This commit is contained in:
commit
669fc368ac
@ -1170,14 +1170,11 @@ void ScriptTextEditor::_update_connected_methods() {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Account for inner classes
|
// Account for inner classes by stripping the class names from the method,
|
||||||
if (raw_name.contains(".")) {
|
// starting from the right since our inner class might be inside of another inner class.
|
||||||
// Strip inner class name from the method, and start from the right since
|
int pos = raw_name.rfind(".");
|
||||||
// our inner class might be inside another inner class
|
if (pos != -1) {
|
||||||
int pos = raw_name.rfind(".");
|
name = raw_name.substr(pos + 1);
|
||||||
if (pos != -1) {
|
|
||||||
name = raw_name.substr(pos + 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String found_base_class;
|
String found_base_class;
|
||||||
|
Loading…
Reference in New Issue
Block a user