Use const Array ref in set_structured_text_bidi_override_options

This commit is contained in:
Aaron Franke
2025-09-26 09:21:14 -07:00
parent 9283328fe7
commit 1a7be001d2
16 changed files with 36 additions and 36 deletions

View File

@@ -1114,12 +1114,12 @@ TextServer::StructuredTextParser Label::get_structured_text_bidi_override() cons
return st_parser;
}
void Label::set_structured_text_bidi_override_options(Array p_args) {
void Label::set_structured_text_bidi_override_options(const Array &p_args) {
if (st_args == p_args) {
return;
}
st_args = p_args;
st_args = Array(p_args);
for (Paragraph &para : paragraphs) {
para.dirty = true;
}
@@ -1127,7 +1127,7 @@ void Label::set_structured_text_bidi_override_options(Array p_args) {
}
Array Label::get_structured_text_bidi_override_options() const {
return st_args;
return Array(st_args);
}
Control::TextDirection Label::get_text_direction() const {