mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 15:44:56 +00:00
Switch to string compare operator
This commit is contained in:
@@ -18,7 +18,7 @@ std::vector<std::pair<std::string_view, std::string_view>> ListLocales() {
|
||||
|
||||
ELocale LookupLocale(std::string_view name) {
|
||||
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 ELocale::Invalid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user