Merge pull request #107408 from Ivorforce/node-path-string-explicit

Make conversions from `NodePath` to `String` explicit.
This commit is contained in:
Rémi Verschelde
2025-06-12 22:49:03 +02:00
39 changed files with 99 additions and 99 deletions

View File

@@ -78,7 +78,7 @@ public:
return data->hash_cache;
}
operator String() const;
explicit operator String() const;
bool is_empty() const;
bool operator==(const NodePath &p_path) const;

View File

@@ -1642,7 +1642,7 @@ String Variant::stringify(int recursion_count) const {
case STRING_NAME:
return operator StringName();
case NODE_PATH:
return operator NodePath();
return String(operator NodePath());
case COLOR:
return String(operator Color());
case DICTIONARY: {