mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8009] Pass const string reference to functions where possible.
Avoids creating an unnecessary copy of strings. Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
55836df62f
commit
a34e7857f1
5 changed files with 5 additions and 5 deletions
|
|
@ -10495,7 +10495,7 @@ void CharmInfo::SetPetNumber(uint32 petnumber, bool statwindow)
|
|||
m_unit->SetUInt32Value(UNIT_FIELD_PETNUMBER, 0);
|
||||
}
|
||||
|
||||
void CharmInfo::LoadPetActionBar( std::string data )
|
||||
void CharmInfo::LoadPetActionBar(const std::string& data )
|
||||
{
|
||||
InitPetActionBar();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue