mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 18:11:13 +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
|
|
@ -2854,7 +2854,8 @@ String GDScriptLanguage::get_global_class_name(const String &p_path, String *r_b
|
|||
if (subclass->extends_used) {
|
||||
if (!subclass->extends_path.is_empty()) {
|
||||
if (subclass->extends.is_empty()) {
|
||||
get_global_class_name(subclass->extends_path, r_base_type);
|
||||
// We only care about the referenced class_name.
|
||||
_ALLOW_DISCARD_ get_global_class_name(subclass->extends_path, r_base_type);
|
||||
subclass = nullptr;
|
||||
break;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue