Modernize std::replace with ranges

This commit is contained in:
mitaclaw
2024-09-29 11:08:08 -07:00
parent 72436a0d1f
commit 0a80243a92
5 changed files with 6 additions and 6 deletions

View File

@ -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))