Skip to content

Commit 50daaa3

Browse files
committed
Add const lvalue ref to scene/* container parameters
1 parent 96be44c commit 50daaa3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+145
-145
lines changed

modules/multiplayer/scene_multiplayer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ Error SceneMultiplayer::rpcp(Object *p_obj, int p_peer_id, const StringName &p_m
581581
return rpc->rpcp(p_obj, p_peer_id, p_method, p_arg, p_argcount);
582582
}
583583

584-
Error SceneMultiplayer::object_configuration_add(Object *p_obj, Variant p_config) {
584+
Error SceneMultiplayer::object_configuration_add(Object *p_obj, const Variant &p_config) {
585585
if (p_obj == nullptr && p_config.get_type() == Variant::NODE_PATH) {
586586
set_root_path(p_config);
587587
return OK;
@@ -596,7 +596,7 @@ Error SceneMultiplayer::object_configuration_add(Object *p_obj, Variant p_config
596596
return ERR_INVALID_PARAMETER;
597597
}
598598

599-
Error SceneMultiplayer::object_configuration_remove(Object *p_obj, Variant p_config) {
599+
Error SceneMultiplayer::object_configuration_remove(Object *p_obj, const Variant &p_config) {
600600
if (p_obj == nullptr && p_config.get_type() == Variant::NODE_PATH) {
601601
ERR_FAIL_COND_V(root_path != p_config.operator NodePath(), ERR_INVALID_PARAMETER);
602602
set_root_path(NodePath());

modules/multiplayer/scene_multiplayer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ class SceneMultiplayer : public MultiplayerAPI {
160160

161161
virtual Error rpcp(Object *p_obj, int p_peer_id, const StringName &p_method, const Variant **p_arg, int p_argcount) override;
162162

163-
virtual Error object_configuration_add(Object *p_obj, Variant p_config) override;
164-
virtual Error object_configuration_remove(Object *p_obj, Variant p_config) override;
163+
virtual Error object_configuration_add(Object *p_obj, const Variant &p_config) override;
164+
virtual Error object_configuration_remove(Object *p_obj, const Variant &p_config) override;
165165

166166
void clear();
167167

scene/2d/tile_map.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ void TileMap::remove_layer(int p_layer) {
321321
update_configuration_warnings();
322322
}
323323

324-
void TileMap::set_layer_name(int p_layer, String p_name) {
324+
void TileMap::set_layer_name(int p_layer, const String &p_name) {
325325
TILEMAP_CALL_FOR_LAYER(p_layer, set_name, p_name);
326326
}
327327

scene/2d/tile_map.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class TileMap : public Node2D {
131131
void move_layer(int p_layer, int p_to_pos);
132132
void remove_layer(int p_layer);
133133

134-
void set_layer_name(int p_layer, String p_name);
134+
void set_layer_name(int p_layer, const String &p_name);
135135
String get_layer_name(int p_layer) const;
136136
void set_layer_enabled(int p_layer, bool p_visible);
137137
bool is_layer_enabled(int p_layer) const;

scene/3d/audio_stream_player_3d.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void AudioStreamPlayer3D::_calc_output_vol(const Vector3 &source_dir, real_t tig
141141
}
142142
}
143143

144-
void AudioStreamPlayer3D::_calc_reverb_vol(Area3D *area, Vector3 listener_area_pos, Vector<AudioFrame> direct_path_vol, Vector<AudioFrame> &reverb_vol) {
144+
void AudioStreamPlayer3D::_calc_reverb_vol(Area3D *area, Vector3 listener_area_pos, const Vector<AudioFrame> &direct_path_vol, Vector<AudioFrame> &reverb_vol) {
145145
reverb_vol.resize(4);
146146
reverb_vol.write[0] = AudioFrame(0, 0);
147147
reverb_vol.write[1] = AudioFrame(0, 0);

scene/3d/audio_stream_player_3d.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class AudioStreamPlayer3D : public Node3D {
8282

8383
static void _calc_output_vol(const Vector3 &source_dir, real_t tightness, Vector<AudioFrame> &output);
8484

85-
void _calc_reverb_vol(Area3D *area, Vector3 listener_area_pos, Vector<AudioFrame> direct_path_vol, Vector<AudioFrame> &reverb_vol);
85+
void _calc_reverb_vol(Area3D *area, Vector3 listener_area_pos, const Vector<AudioFrame> &direct_path_vol, Vector<AudioFrame> &reverb_vol);
8686

8787
static void _listener_changed_cb(void *self) { reinterpret_cast<AudioStreamPlayer3D *>(self)->force_update_panning = true; }
8888

scene/3d/bone_attachment_3d.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ void BoneAttachment3D::on_skeleton_update() {
337337
updating = false;
338338
}
339339
#ifdef TOOLS_ENABLED
340-
void BoneAttachment3D::notify_skeleton_bones_renamed(Node *p_base_scene, Skeleton3D *p_skeleton, Dictionary p_rename_map) {
340+
void BoneAttachment3D::notify_skeleton_bones_renamed(Node *p_base_scene, Skeleton3D *p_skeleton, const Dictionary &p_rename_map) {
341341
const Skeleton3D *parent = nullptr;
342342
if (use_external_skeleton) {
343343
if (external_skeleton_node_cache.is_valid()) {

scene/3d/bone_attachment_3d.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class BoneAttachment3D : public Node3D {
7474

7575
public:
7676
#ifdef TOOLS_ENABLED
77-
virtual void notify_skeleton_bones_renamed(Node *p_base_scene, Skeleton3D *p_skeleton, Dictionary p_rename_map);
77+
virtual void notify_skeleton_bones_renamed(Node *p_base_scene, Skeleton3D *p_skeleton, const Dictionary &p_rename_map);
7878
#endif // TOOLS_ENABLED
7979

8080
virtual PackedStringArray get_configuration_warnings() const override;

scene/3d/label_3d.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ TextServer::StructuredTextParser Label3D::get_structured_text_bidi_override() co
713713
return st_parser;
714714
}
715715

716-
void Label3D::set_structured_text_bidi_override_options(Array p_args) {
716+
void Label3D::set_structured_text_bidi_override_options(const Array &p_args) {
717717
if (st_args != p_args) {
718718
st_args = p_args;
719719
dirty_text = true;

scene/3d/label_3d.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class Label3D : public GeometryInstance3D {
188188
void set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser);
189189
TextServer::StructuredTextParser get_structured_text_bidi_override() const;
190190

191-
void set_structured_text_bidi_override_options(Array p_args);
191+
void set_structured_text_bidi_override_options(const Array &p_args);
192192
Array get_structured_text_bidi_override_options() const;
193193

194194
void set_uppercase(bool p_uppercase);

scene/3d/occluder_instance_3d.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,18 @@ Occluder3D::~Occluder3D() {
142142

143143
/////////////////////////////////////////////////
144144

145-
void ArrayOccluder3D::set_arrays(PackedVector3Array p_vertices, PackedInt32Array p_indices) {
145+
void ArrayOccluder3D::set_arrays(const PackedVector3Array &p_vertices, const PackedInt32Array &p_indices) {
146146
vertices = p_vertices;
147147
indices = p_indices;
148148
_update();
149149
}
150150

151-
void ArrayOccluder3D::set_vertices(PackedVector3Array p_vertices) {
151+
void ArrayOccluder3D::set_vertices(const PackedVector3Array &p_vertices) {
152152
vertices = p_vertices;
153153
_update();
154154
}
155155

156-
void ArrayOccluder3D::set_indices(PackedInt32Array p_indices) {
156+
void ArrayOccluder3D::set_indices(const PackedInt32Array &p_indices) {
157157
indices = p_indices;
158158
_update();
159159
}
@@ -512,7 +512,7 @@ bool OccluderInstance3D::_bake_material_check(Ref<Material> p_material) {
512512
return true;
513513
}
514514

515-
void OccluderInstance3D::_bake_surface(const Transform3D &p_transform, Array p_surface_arrays, Ref<Material> p_material, float p_simplification_dist, PackedVector3Array &r_vertices, PackedInt32Array &r_indices) {
515+
void OccluderInstance3D::_bake_surface(const Transform3D &p_transform, const Array &p_surface_arrays, Ref<Material> p_material, float p_simplification_dist, PackedVector3Array &r_vertices, PackedInt32Array &r_indices) {
516516
if (!_bake_material_check(p_material)) {
517517
return;
518518
}

scene/3d/occluder_instance_3d.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ class ArrayOccluder3D : public Occluder3D {
7575
static void _bind_methods();
7676

7777
public:
78-
void set_arrays(PackedVector3Array p_vertices, PackedInt32Array p_indices);
79-
void set_vertices(PackedVector3Array p_vertices);
80-
void set_indices(PackedInt32Array p_indices);
78+
void set_arrays(const PackedVector3Array &p_vertices, const PackedInt32Array &p_indices);
79+
void set_vertices(const PackedVector3Array &p_vertices);
80+
void set_indices(const PackedInt32Array &p_indices);
8181

8282
ArrayOccluder3D();
8383
~ArrayOccluder3D();
@@ -170,7 +170,7 @@ class OccluderInstance3D : public VisualInstance3D {
170170
void _occluder_changed();
171171

172172
static bool _bake_material_check(Ref<Material> p_material);
173-
static void _bake_surface(const Transform3D &p_transform, Array p_surface_arrays, Ref<Material> p_material, float p_simplification_dist, PackedVector3Array &r_vertices, PackedInt32Array &r_indices);
173+
static void _bake_surface(const Transform3D &p_transform, const Array &p_surface_arrays, Ref<Material> p_material, float p_simplification_dist, PackedVector3Array &r_vertices, PackedInt32Array &r_indices);
174174
void _bake_node(Node *p_node, PackedVector3Array &r_vertices, PackedInt32Array &r_indices);
175175

176176
bool _is_editable_3d_polygon() const;

scene/3d/soft_body_3d.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ const NodePath &SoftBody3D::get_parent_collision_ignore() const {
574574
return parent_collision_ignore;
575575
}
576576

577-
void SoftBody3D::set_pinned_points_indices(Vector<SoftBody3D::PinnedPoint> p_pinned_points_indices) {
577+
void SoftBody3D::set_pinned_points_indices(const Vector<SoftBody3D::PinnedPoint> &p_pinned_points_indices) {
578578
pinned_points = p_pinned_points_indices;
579579
for (int i = pinned_points.size() - 1; 0 <= i; --i) {
580580
pin_point(p_pinned_points_indices[i].point_index, true);

scene/3d/soft_body_3d.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class SoftBody3D : public MeshInstance3D {
149149
void set_parent_collision_ignore(const NodePath &p_parent_collision_ignore);
150150
const NodePath &get_parent_collision_ignore() const;
151151

152-
void set_pinned_points_indices(Vector<PinnedPoint> p_pinned_points_indices);
152+
void set_pinned_points_indices(const Vector<PinnedPoint> &p_pinned_points_indices);
153153
Vector<PinnedPoint> get_pinned_points_indices();
154154

155155
void set_simulation_precision(int p_simulation_precision);

scene/animation/animation_mixer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -947,15 +947,15 @@ void AnimationMixer::_process_animation(double p_delta, bool p_update_only) {
947947
clear_animation_instances();
948948
}
949949

950-
Variant AnimationMixer::post_process_key_value(const Ref<Animation> &p_anim, int p_track, Variant p_value, ObjectID p_object_id, int p_object_sub_idx) {
950+
Variant AnimationMixer::post_process_key_value(const Ref<Animation> &p_anim, int p_track, const Variant &p_value, ObjectID p_object_id, int p_object_sub_idx) {
951951
Variant res;
952952
if (GDVIRTUAL_CALL(_post_process_key_value, p_anim, p_track, p_value, p_object_id, p_object_sub_idx, res)) {
953953
return res;
954954
}
955955
return _post_process_key_value(p_anim, p_track, p_value, p_object_id, p_object_sub_idx);
956956
}
957957

958-
Variant AnimationMixer::_post_process_key_value(const Ref<Animation> &p_anim, int p_track, Variant p_value, ObjectID p_object_id, int p_object_sub_idx) {
958+
Variant AnimationMixer::_post_process_key_value(const Ref<Animation> &p_anim, int p_track, const Variant &p_value, ObjectID p_object_id, int p_object_sub_idx) {
959959
#ifndef _3D_DISABLED
960960
switch (p_anim->track_get_type(p_track)) {
961961
case Animation::TYPE_POSITION_3D: {
@@ -2348,7 +2348,7 @@ AnimationMixer::AnimationMixer() {
23482348
AnimationMixer::~AnimationMixer() {
23492349
}
23502350

2351-
void AnimatedValuesBackup::set_data(const HashMap<Animation::TypeHash, AnimationMixer::TrackCache *> p_data) {
2351+
void AnimatedValuesBackup::set_data(const HashMap<Animation::TypeHash, AnimationMixer::TrackCache *> &p_data) {
23522352
clear_data();
23532353

23542354
for (const KeyValue<Animation::TypeHash, AnimationMixer::TrackCache *> &E : p_data) {

scene/animation/animation_mixer.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ class AnimationMixer : public Node {
356356
virtual void _process_animation(double p_delta, bool p_update_only = false);
357357

358358
// For post process with retrieved key value during blending.
359-
virtual Variant _post_process_key_value(const Ref<Animation> &p_anim, int p_track, Variant p_value, ObjectID p_object_id, int p_object_sub_idx = -1);
360-
Variant post_process_key_value(const Ref<Animation> &p_anim, int p_track, Variant p_value, ObjectID p_object_id, int p_object_sub_idx = -1);
359+
virtual Variant _post_process_key_value(const Ref<Animation> &p_anim, int p_track, const Variant &p_value, ObjectID p_object_id, int p_object_sub_idx = -1);
360+
Variant post_process_key_value(const Ref<Animation> &p_anim, int p_track, const Variant &p_value, ObjectID p_object_id, int p_object_sub_idx = -1);
361361
GDVIRTUAL5RC(Variant, _post_process_key_value, Ref<Animation>, int, Variant, ObjectID, int);
362362

363363
void _blend_init();
@@ -485,7 +485,7 @@ class AnimatedValuesBackup : public RefCounted {
485485
HashMap<Animation::TypeHash, AnimationMixer::TrackCache *> data;
486486

487487
public:
488-
void set_data(const HashMap<Animation::TypeHash, AnimationMixer::TrackCache *> p_data);
488+
void set_data(const HashMap<Animation::TypeHash, AnimationMixer::TrackCache *> &p_data);
489489
HashMap<Animation::TypeHash, AnimationMixer::TrackCache *> get_data() const;
490490
void clear_data();
491491

scene/animation/tween.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Ref<CallbackTweener> Tween::tween_callback(const Callable &p_callback) {
142142
return tweener;
143143
}
144144

145-
Ref<MethodTweener> Tween::tween_method(const Callable &p_callback, const Variant p_from, Variant p_to, double p_duration) {
145+
Ref<MethodTweener> Tween::tween_method(const Callable &p_callback, const Variant &p_from, Variant p_to, double p_duration) {
146146
CHECK_VALID();
147147

148148
if (!_validate_type_match(p_from, p_to)) {

scene/animation/tween.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class Tween : public RefCounted {
143143
Ref<PropertyTweener> tween_property(const Object *p_target, const NodePath &p_property, Variant p_to, double p_duration);
144144
Ref<IntervalTweener> tween_interval(double p_time);
145145
Ref<CallbackTweener> tween_callback(const Callable &p_callback);
146-
Ref<MethodTweener> tween_method(const Callable &p_callback, const Variant p_from, Variant p_to, double p_duration);
146+
Ref<MethodTweener> tween_method(const Callable &p_callback, const Variant &p_from, Variant p_to, double p_duration);
147147
void append(Ref<Tweener> p_tweener);
148148

149149
bool custom_step(double p_delta);

scene/debugger/scene_debugger.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class SceneDebuggerTree {
101101
VIEW_VISIBLE_IN_TREE = 1 << 3,
102102
};
103103

104-
RemoteNode(int p_child, const String &p_name, const String &p_type, ObjectID p_id, const String p_scene_file_path, int p_view_flags) {
104+
RemoteNode(int p_child, const String &p_name, const String &p_type, ObjectID p_id, const String &p_scene_file_path, int p_view_flags) {
105105
child_count = p_child;
106106
name = p_name;
107107
type_name = p_type;

scene/gui/dialogs.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ String AcceptDialog::get_text() const {
162162
return message_label->get_text();
163163
}
164164

165-
void AcceptDialog::set_text(String p_text) {
165+
void AcceptDialog::set_text(const String &p_text) {
166166
if (message_label->get_text() == p_text) {
167167
return;
168168
}
@@ -199,7 +199,7 @@ bool AcceptDialog::has_autowrap() {
199199
return message_label->get_autowrap_mode() != TextServer::AUTOWRAP_OFF;
200200
}
201201

202-
void AcceptDialog::set_ok_button_text(String p_ok_button_text) {
202+
void AcceptDialog::set_ok_button_text(const String &p_ok_button_text) {
203203
ok_button->set_text(p_ok_button_text);
204204

205205
child_controls_changed();
@@ -459,7 +459,7 @@ AcceptDialog::~AcceptDialog() {
459459

460460
// ConfirmationDialog
461461

462-
void ConfirmationDialog::set_cancel_button_text(String p_cancel_button_text) {
462+
void ConfirmationDialog::set_cancel_button_text(const String &p_cancel_button_text) {
463463
cancel->set_text(p_cancel_button_text);
464464
}
465465

scene/gui/dialogs.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ class AcceptDialog : public Window {
111111
void set_close_on_escape(bool p_enable);
112112
bool get_close_on_escape() const;
113113

114-
void set_text(String p_text);
114+
void set_text(const String &p_text);
115115
String get_text() const;
116116

117117
void set_autowrap(bool p_autowrap);
118118
bool has_autowrap();
119119

120-
void set_ok_button_text(String p_ok_button_text);
120+
void set_ok_button_text(const String &p_ok_button_text);
121121
String get_ok_button_text() const;
122122

123123
AcceptDialog();
@@ -134,7 +134,7 @@ class ConfirmationDialog : public AcceptDialog {
134134
public:
135135
Button *get_cancel_button();
136136

137-
void set_cancel_button_text(String p_cancel_button_text);
137+
void set_cancel_button_text(const String &p_cancel_button_text);
138138
String get_cancel_button_text() const;
139139

140140
ConfirmationDialog();

scene/gui/file_dialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void FileDialog::update_dir() {
353353
deselect_all();
354354
}
355355

356-
void FileDialog::_dir_submitted(String p_dir) {
356+
void FileDialog::_dir_submitted(const String &p_dir) {
357357
_change_dir(root_prefix.path_join(p_dir));
358358
file->set_text("");
359359
_push_history();

scene/gui/file_dialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class FileDialog : public ConfirmationDialog {
158158

159159
void _select_drive(int p_idx);
160160
void _tree_item_activated();
161-
void _dir_submitted(String p_dir);
161+
void _dir_submitted(const String &p_dir);
162162
void _file_submitted(const String &p_file);
163163
void _action_pressed();
164164
void _save_confirm_pressed();

scene/gui/label.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ TextServer::StructuredTextParser Label::get_structured_text_bidi_override() cons
920920
return st_parser;
921921
}
922922

923-
void Label::set_structured_text_bidi_override_options(Array p_args) {
923+
void Label::set_structured_text_bidi_override_options(const Array &p_args) {
924924
if (st_args == p_args) {
925925
return;
926926
}

scene/gui/label.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Label : public Control {
127127
void set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser);
128128
TextServer::StructuredTextParser get_structured_text_bidi_override() const;
129129

130-
void set_structured_text_bidi_override_options(Array p_args);
130+
void set_structured_text_bidi_override_options(const Array &p_args);
131131
Array get_structured_text_bidi_override_options() const;
132132

133133
void set_autowrap_mode(TextServer::AutowrapMode p_mode);

scene/gui/line_edit.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,7 @@ void LineEdit::delete_text(int p_from_column, int p_to_column) {
15381538
}
15391539
}
15401540

1541-
void LineEdit::set_text(String p_text) {
1541+
void LineEdit::set_text(const String &p_text) {
15421542
clear_internal();
15431543
insert_text_at_caret(p_text);
15441544
_create_undo_state();
@@ -1626,7 +1626,7 @@ TextServer::StructuredTextParser LineEdit::get_structured_text_bidi_override() c
16261626
return st_parser;
16271627
}
16281628

1629-
void LineEdit::set_structured_text_bidi_override_options(Array p_args) {
1629+
void LineEdit::set_structured_text_bidi_override_options(const Array &p_args) {
16301630
st_args = p_args;
16311631
_shape();
16321632
queue_redraw();
@@ -1660,7 +1660,7 @@ String LineEdit::get_text() const {
16601660
return text;
16611661
}
16621662

1663-
void LineEdit::set_placeholder(String p_text) {
1663+
void LineEdit::set_placeholder(const String &p_text) {
16641664
if (placeholder == p_text) {
16651665
return;
16661666
}

scene/gui/line_edit.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class LineEdit : public Control {
284284
void delete_char();
285285
void delete_text(int p_from_column, int p_to_column);
286286

287-
void set_text(String p_text);
287+
void set_text(const String &p_text);
288288
String get_text() const;
289289
void set_text_with_selection(const String &p_text); // Set text, while preserving selection.
290290

@@ -300,10 +300,10 @@ class LineEdit : public Control {
300300
void set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser);
301301
TextServer::StructuredTextParser get_structured_text_bidi_override() const;
302302

303-
void set_structured_text_bidi_override_options(Array p_args);
303+
void set_structured_text_bidi_override_options(const Array &p_args);
304304
Array get_structured_text_bidi_override_options() const;
305305

306-
void set_placeholder(String p_text);
306+
void set_placeholder(const String &p_text);
307307
String get_placeholder() const;
308308

309309
void set_caret_column(int p_column);

scene/gui/link_button.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ TextServer::StructuredTextParser LinkButton::get_structured_text_bidi_override()
7474
return st_parser;
7575
}
7676

77-
void LinkButton::set_structured_text_bidi_override_options(Array p_args) {
77+
void LinkButton::set_structured_text_bidi_override_options(const Array &p_args) {
7878
st_args = p_args;
7979
_shape();
8080
queue_redraw();

0 commit comments

Comments
 (0)