Core/Misc: Switch GetLocaleByName to use string_view

This commit is contained in:
Shauren
2022-11-20 14:55:17 +01:00
parent 6856b24883
commit 9f753e97f4
2 changed files with 14 additions and 14 deletions

View File

@@ -19,21 +19,21 @@
char const* localeNames[TOTAL_LOCALES] =
{
"enUS",
"koKR",
"frFR",
"deDE",
"zhCN",
"zhTW",
"esES",
"esMX",
"ruRU",
"none",
"ptBR",
"itIT"
"enUS",
"koKR",
"frFR",
"deDE",
"zhCN",
"zhTW",
"esES",
"esMX",
"ruRU",
"none",
"ptBR",
"itIT"
};
LocaleConstant GetLocaleByName(std::string const& name)
LocaleConstant GetLocaleByName(std::string_view name)
{
for (uint32 i = 0; i < TOTAL_LOCALES; ++i)
if (name == localeNames[i])