summaryrefslogtreecommitdiffstats
path: root/scene/resources/skeleton_profile.h
diff options
context:
space:
mode:
authorMuller-Castro <37383316+Muller-Castro@users.noreply.github.com>2021-08-01 16:47:20 -0300
committerMuller-Castro <37383316+Muller-Castro@users.noreply.github.com>2024-01-05 14:49:57 -0300
commit96a95cb9743e755f10fa6a14895ea099e5ac4c51 (patch)
tree8ccdf0cc23500519680490cc6b2078889117f904 /scene/resources/skeleton_profile.h
parent89cc635c0554cb2e518c830969ca4c5eedda0f4e (diff)
downloadredot-engine-96a95cb9743e755f10fa6a14895ea099e5ac4c51.tar.gz
Add const lvalue ref to container parameters
Diffstat (limited to 'scene/resources/skeleton_profile.h')
-rw-r--r--scene/resources/skeleton_profile.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/scene/resources/skeleton_profile.h b/scene/resources/skeleton_profile.h
index 418a051976..143f495c61 100644
--- a/scene/resources/skeleton_profile.h
+++ b/scene/resources/skeleton_profile.h
@@ -78,16 +78,16 @@ protected:
public:
StringName get_root_bone();
- void set_root_bone(StringName p_bone_name);
+ void set_root_bone(const StringName &p_bone_name);
StringName get_scale_base_bone();
- void set_scale_base_bone(StringName p_bone_name);
+ void set_scale_base_bone(const StringName &p_bone_name);
int get_group_size();
void set_group_size(int p_size);
StringName get_group_name(int p_group_idx) const;
- void set_group_name(int p_group_idx, const StringName p_group_name);
+ void set_group_name(int p_group_idx, const StringName &p_group_name);
Ref<Texture2D> get_texture(int p_group_idx) const;
void set_texture(int p_group_idx, const Ref<Texture2D> &p_texture);
@@ -95,19 +95,19 @@ public:
int get_bone_size();
void set_bone_size(int p_size);
- int find_bone(const StringName p_bone_name) const;
+ int find_bone(const StringName &p_bone_name) const;
StringName get_bone_name(int p_bone_idx) const;
- void set_bone_name(int p_bone_idx, const StringName p_bone_name);
+ void set_bone_name(int p_bone_idx, const StringName &p_bone_name);
StringName get_bone_parent(int p_bone_idx) const;
- void set_bone_parent(int p_bone_idx, const StringName p_bone_parent);
+ void set_bone_parent(int p_bone_idx, const StringName &p_bone_parent);
TailDirection get_tail_direction(int p_bone_idx) const;
void set_tail_direction(int p_bone_idx, const TailDirection p_tail_direction);
StringName get_bone_tail(int p_bone_idx) const;
- void set_bone_tail(int p_bone_idx, const StringName p_bone_tail);
+ void set_bone_tail(int p_bone_idx, const StringName &p_bone_tail);
Transform3D get_reference_pose(int p_bone_idx) const;
void set_reference_pose(int p_bone_idx, const Transform3D p_reference_pose);
@@ -116,12 +116,12 @@ public:
void set_handle_offset(int p_bone_idx, const Vector2 p_handle_offset);
StringName get_group(int p_bone_idx) const;
- void set_group(int p_bone_idx, const StringName p_group);
+ void set_group(int p_bone_idx, const StringName &p_group);
bool is_require(int p_bone_idx) const;
void set_require(int p_bone_idx, const bool p_require);
- bool has_bone(StringName p_bone_name);
+ bool has_bone(const StringName &p_bone_name);
SkeletonProfile();
~SkeletonProfile();