You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Core: Add [[nodiscard]] to string-like classes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user