Change StringName -> String conversion from operator String() to string().
This commit is contained in:
@@ -2553,8 +2553,8 @@ void GDScriptAnalyzer::resolve_return(GDScriptParser::ReturnNode *p_return) {
|
||||
p_return->void_return = true;
|
||||
const GDScriptParser::DataType &return_type = p_return->return_value->datatype;
|
||||
if (is_call && !return_type.is_hard_type()) {
|
||||
String function_name = parser->current_function->identifier ? parser->current_function->identifier->name.operator String() : String("<anonymous function>");
|
||||
String called_function_name = static_cast<GDScriptParser::CallNode *>(p_return->return_value)->function_name.operator String();
|
||||
String function_name = parser->current_function->identifier ? parser->current_function->identifier->name.string() : String("<anonymous function>");
|
||||
String called_function_name = static_cast<GDScriptParser::CallNode *>(p_return->return_value)->function_name.string();
|
||||
#ifdef DEBUG_ENABLED
|
||||
parser->push_warning(p_return, GDScriptWarning::UNSAFE_VOID_RETURN, function_name, called_function_name);
|
||||
#endif // DEBUG_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user