Switch to string compare operator

This commit is contained in:
Jack Andersen 2019-09-30 21:33:12 -10:00
parent 16851c5869
commit 532594a4c5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ std::vector<std::pair<std::string_view, std::string_view>> ListLocales() {
ELocale LookupLocale(std::string_view name) { ELocale LookupLocale(std::string_view name) {
for (ELocale l = ELocale(0); l < ELocale::MAXLocale; l = ELocale(int(l) + 1)) for (ELocale l = ELocale(0); l < ELocale::MAXLocale; l = ELocale(int(l) + 1))
if (!name.compare(GetName(l))) if (name == GetName(l))
return l; return l;
return ELocale::Invalid; return ELocale::Invalid;
} }