mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Modernize std::replace
with ranges
This commit is contained in:
@ -225,7 +225,7 @@ void SetLocale(std::string locale_name)
|
||||
if (locale_name == "en")
|
||||
locale_name = "en_GB";
|
||||
|
||||
std::replace(locale_name.begin(), locale_name.end(), OTHER_SEPARATOR, PREFERRED_SEPARATOR);
|
||||
std::ranges::replace(locale_name, OTHER_SEPARATOR, PREFERRED_SEPARATOR);
|
||||
|
||||
// Use the specified locale if supported.
|
||||
if (set_locale(locale_name))
|
||||
|
Reference in New Issue
Block a user