[8009] Pass const string reference to functions where possible. Author: hunuza
Avoids creating an unnecessary copy of strings. --HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -931,7 +931,7 @@ struct CharmInfo
|
||||
//return true if successful
|
||||
bool AddSpellToActionBar(uint32 spellid, ActiveStates newstate = ACT_DECIDE);
|
||||
bool RemoveSpellFromActionBar(uint32 spell_id);
|
||||
void LoadPetActionBar(std::string data);
|
||||
void LoadPetActionBar(const std::string& data);
|
||||
void BuildActionBar(WorldPacket* data);
|
||||
void SetSpellAutocast(uint32 spell_id, bool state);
|
||||
void SetActionBar(uint8 index, uint32 spellOrAction,ActiveStates type)
|
||||
|
||||
Reference in New Issue
Block a user