Use const Array ref in set_structured_text_bidi_override_options
This commit is contained in:
@ -739,16 +739,16 @@ TextServer::StructuredTextParser Label3D::get_structured_text_bidi_override() co
|
||||
return st_parser;
|
||||
}
|
||||
|
||||
void Label3D::set_structured_text_bidi_override_options(Array p_args) {
|
||||
void Label3D::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;
|
||||
_queue_update();
|
||||
}
|
||||
}
|
||||
|
||||
Array Label3D::get_structured_text_bidi_override_options() const {
|
||||
return st_args;
|
||||
return Array(st_args);
|
||||
}
|
||||
|
||||
void Label3D::set_uppercase(bool p_uppercase) {
|
||||
|
||||
@ -188,7 +188,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