Merge pull request #13091 from mitaclaw/ranges-modernization-2-returns

Ranges Algorithms Modernization - Return
This commit is contained in:
JMC47 2024-12-20 12:50:19 -05:00 committed by GitHub
commit 1ba8541da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 15 additions and 16 deletions

View file

@ -62,7 +62,7 @@ bool IsPathAndroidContent(std::string_view uri)
std::string OpenModeToAndroid(std::string mode)
{
// The 'b' specifier is not supported by Android. Since we're on POSIX, it's fine to just skip it.
mode.erase(std::remove(mode.begin(), mode.end(), 'b'));
std::erase(mode, 'b');
if (mode == "r")
return "r";