mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add const references detected by clang-tidy
This commit is contained in:
parent
2d0ee20ff3
commit
a3cb1b096f
57 changed files with 120 additions and 120 deletions
|
@ -620,9 +620,9 @@ static String _trim_parent_class(const String &p_class, const String &p_base_cla
|
|||
}
|
||||
Vector<String> names = p_class.split(".", false, 1);
|
||||
if (names.size() == 2) {
|
||||
String first = names[0];
|
||||
String rest = names[1];
|
||||
const String &first = names[0];
|
||||
if (ClassDB::class_exists(p_base_class) && ClassDB::class_exists(first) && ClassDB::is_parent_class(p_base_class, first)) {
|
||||
const String &rest = names[1];
|
||||
return rest;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue