diff options
author | megamage <none@none> | 2009-06-14 10:07:34 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-14 10:07:34 -0500 |
commit | a44a68acbb7d130ce8b8918ec023425cfdfb9335 (patch) | |
tree | 82be9d61f4956ad5cfe4c43cd02921eafc7ee1ce /src/game/Unit.cpp | |
parent | 314a4f8f00213b25b48d2aab277a6a6babf0af48 (diff) |
[8009] Pass const string reference to functions where possible. Author: hunuza
Avoids creating an unnecessary copy of strings.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 1896655b50f..88c3630be22 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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(); |