mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Core: Add [[nodiscard]]
to string-like classes
This commit is contained in:
parent
6a6a1168a5
commit
579feb387c
12 changed files with 22 additions and 21 deletions
|
@ -59,7 +59,8 @@ static String _get_parent_class_of_script(const String &p_path) {
|
|||
|
||||
// Inherits from a built-in class.
|
||||
if (base.is_null()) {
|
||||
script->get_language()->get_global_class_name(script->get_path(), &class_name);
|
||||
// We only care about the referenced class_name.
|
||||
_ALLOW_DISCARD_ script->get_language()->get_global_class_name(script->get_path(), &class_name);
|
||||
return class_name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue