[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:
megamage committed 2009-06-14 10:07:34 -05:00
1 parent 314a4f8f00
commit a44a68acbb
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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();