mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
[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:
@@ -12196,7 +12196,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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user