From 9f753e97f4f80d386969e700dfad257030bce1ae Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 20 Nov 2022 14:55:17 +0100 Subject: Core/Misc: Switch GetLocaleByName to use string_view --- src/common/Common.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/common/Common.cpp') diff --git a/src/common/Common.cpp b/src/common/Common.cpp index 1d1beddddc6..0cc12877db1 100644 --- a/src/common/Common.cpp +++ b/src/common/Common.cpp @@ -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]) -- cgit v1.2.3