mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 16:37:03 +00:00
[6899] Pass const reference instead of value for some strings in some functions.
Signed-off-by: hunuza <hunuza@gmail.com>
This commit is contained in:
parent
d386a67d27
commit
0f12997ef1
40 changed files with 108 additions and 108 deletions
|
|
@ -30,7 +30,7 @@ char const* localeNames[MAX_LOCALE] = {
|
|||
"ruRU"
|
||||
};
|
||||
|
||||
LocaleConstant GetLocaleByName(std::string name)
|
||||
LocaleConstant GetLocaleByName(const std::string& name)
|
||||
{
|
||||
for(uint32 i = 0; i < MAX_LOCALE; ++i)
|
||||
if(name==localeNames[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue