You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Replace Array return types with TypedArray
This commit is contained in:
@@ -2946,13 +2946,13 @@ void Control::end_bulk_theme_override() {
|
||||
|
||||
// Internationalization.
|
||||
|
||||
Array Control::structured_text_parser(TextServer::StructuredTextParser p_parser_type, const Array &p_args, const String &p_text) const {
|
||||
TypedArray<Vector2i> Control::structured_text_parser(TextServer::StructuredTextParser p_parser_type, const Array &p_args, const String &p_text) const {
|
||||
if (p_parser_type == TextServer::STRUCTURED_TEXT_CUSTOM) {
|
||||
Array ret;
|
||||
TypedArray<Vector2i> ret;
|
||||
if (GDVIRTUAL_CALL(_structured_text_parser, p_args, p_text, ret)) {
|
||||
return ret;
|
||||
} else {
|
||||
return Array();
|
||||
return TypedArray<Vector2i>();
|
||||
}
|
||||
} else {
|
||||
return TS->parse_structured_text(p_parser_type, p_args, p_text);
|
||||
|
||||
Reference in New Issue
Block a user