diff options
| author | est31 <MTest31@outlook.com> | 2015-05-27 11:45:40 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2015-05-27 11:45:40 +0200 |
| commit | 21878c9d5c364faa1f43c84c51804d9b7dbe376f (patch) | |
| tree | 0f7c383eeb95dbbaf57e10875a6625e7b21bbed8 /src/content_sao.h | |
| parent | f16ebbfecf89131b81625ef734c6607c5684c2bd (diff) | |
| download | dragonfireclient-21878c9d5c364faa1f43c84c51804d9b7dbe376f.tar.xz | |
Spare some string copies
Diffstat (limited to 'src/content_sao.h')
| -rw-r--r-- | src/content_sao.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content_sao.h b/src/content_sao.h index 4a8c70e16..05b5fa7e1 100644 --- a/src/content_sao.h +++ b/src/content_sao.h @@ -59,8 +59,8 @@ public: s16 getHP() const; void setArmorGroups(const ItemGroupList &armor_groups); void setAnimation(v2f frame_range, float frame_speed, float frame_blend); - void setBonePosition(std::string bone, v3f position, v3f rotation); - void setAttachment(int parent_id, std::string bone, v3f position, v3f rotation); + void setBonePosition(const std::string &bone, v3f position, v3f rotation); + void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); /* LuaEntitySAO-specific */ @@ -193,8 +193,8 @@ public: void setBreath(u16 breath); void setArmorGroups(const ItemGroupList &armor_groups); void setAnimation(v2f frame_range, float frame_speed, float frame_blend); - void setBonePosition(std::string bone, v3f position, v3f rotation); - void setAttachment(int parent_id, std::string bone, v3f position, v3f rotation); + void setBonePosition(const std::string &bone, v3f position, v3f rotation); + void setAttachment(int parent_id, const std::string &bone, v3f position, v3f rotation); ObjectProperties* accessObjectProperties(); void notifyObjectPropertiesModified(); void setNametagColor(video::SColor color); |
