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
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";