diff options
| author | Spp <spp@jorge.gr> | 2012-10-24 15:34:23 +0200 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2012-10-24 15:34:48 +0200 |
| commit | 9fbc4c0ae2acab3ceba717b33c72e2382a1e5bb8 (patch) | |
| tree | 2190f494bc8830b8a695c5fcad612e4d0c350fee /src/server/game/Entities/Object | |
| parent | 013fb1f4d9131fc8ec45931445e6a05408dce8f9 (diff) | |
Core/Misc: reduced amount of string memory allocations (Step II)
Diffstat (limited to 'src/server/game/Entities/Object')
| -rwxr-xr-x | src/server/game/Entities/Object/Object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Object/Object.h b/src/server/game/Entities/Object/Object.h index a14bbe84945..0bb4214de32 100755 --- a/src/server/game/Entities/Object/Object.h +++ b/src/server/game/Entities/Object/Object.h @@ -655,7 +655,7 @@ class WorldObject : public Object, public WorldLocation InstanceScript* GetInstanceScript(); std::string const& GetName() const { return m_name; } - void SetName(const std::string& newname) { m_name=newname; } + void SetName(std::string const& newname) { m_name=newname; } virtual std::string const& GetNameForLocaleIdx(LocaleConstant /*locale_idx*/) const { return m_name; } @@ -743,7 +743,7 @@ class WorldObject : public Object, public WorldLocation void MonsterTextEmote(int32 textId, uint64 TargetGuid, bool IsBossEmote = false); void MonsterWhisper(int32 textId, uint64 receiver, bool IsBossWhisper = false); void MonsterYellToZone(int32 textId, uint32 language, uint64 TargetGuid); - void BuildMonsterChat(WorldPacket* data, uint8 msgtype, char const* text, uint32 language, std::string const &name, uint64 TargetGuid) const; + void BuildMonsterChat(WorldPacket* data, uint8 msgtype, char const* text, uint32 language, std::string const& name, uint64 TargetGuid) const; void PlayDistanceSound(uint32 sound_id, Player* target = NULL); void PlayDirectSound(uint32 sound_id, Player* target = NULL); |
