You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Use const Array ref in set_structured_text_bidi_override_options
This commit is contained in:
@@ -3952,16 +3952,16 @@ TextServer::StructuredTextParser TextMesh::get_structured_text_bidi_override() c
|
||||
return st_parser;
|
||||
}
|
||||
|
||||
void TextMesh::set_structured_text_bidi_override_options(Array p_args) {
|
||||
void TextMesh::set_structured_text_bidi_override_options(const Array &p_args) {
|
||||
if (st_args != p_args) {
|
||||
st_args = p_args;
|
||||
st_args = Array(p_args);
|
||||
dirty_text = true;
|
||||
request_update();
|
||||
}
|
||||
}
|
||||
|
||||
Array TextMesh::get_structured_text_bidi_override_options() const {
|
||||
return st_args;
|
||||
return Array(st_args);
|
||||
}
|
||||
|
||||
void TextMesh::set_uppercase(bool p_uppercase) {
|
||||
|
||||
@@ -653,7 +653,7 @@ public:
|
||||
void set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser);
|
||||
TextServer::StructuredTextParser get_structured_text_bidi_override() const;
|
||||
|
||||
void set_structured_text_bidi_override_options(Array p_args);
|
||||
void set_structured_text_bidi_override_options(const Array &p_args);
|
||||
Array get_structured_text_bidi_override_options() const;
|
||||
|
||||
void set_uppercase(bool p_uppercase);
|
||||
|
||||
Reference in New Issue
Block a user