[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:
@@ -60,7 +60,7 @@ struct AccountData
|
||||
|
||||
struct AddonInfo
|
||||
{
|
||||
AddonInfo(std::string name, uint8 enabled, uint32 crc)
|
||||
AddonInfo(const std::string& name, uint8 enabled, uint32 crc)
|
||||
{
|
||||
Name = name;
|
||||
Enabled = enabled;
|
||||
|
||||
Reference in New Issue
Block a user