diff --git a/Source/Core/Common/SettingsHandler.cpp b/Source/Core/Common/SettingsHandler.cpp index c36805d4ce..81e5da5989 100644 --- a/Source/Core/Common/SettingsHandler.cpp +++ b/Source/Core/Common/SettingsHandler.cpp @@ -81,7 +81,7 @@ void SettingsHandler::Decrypt() // (see the comment in WriteLine), lines can be separated by CRLFLF. // To handle this, we remove every CR and treat LF as the line ending. // (We ignore empty lines.) - decoded.erase(std::remove(decoded.begin(), decoded.end(), '\x0d'), decoded.end()); + std::erase(decoded, '\x0d'); } void SettingsHandler::Reset()