Common/SettingsHandler: Use std::erase in Decrypt()

Same behavior, way less verbose code.
This commit is contained in:
Lioncash 2023-12-11 07:49:40 -05:00
parent d84ed054ee
commit 04b9f6c28d
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ void SettingsHandler::Decrypt()
// (see the comment in WriteLine), lines can be separated by CRLFLF. // (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. // To handle this, we remove every CR and treat LF as the line ending.
// (We ignore empty lines.) // (We ignore empty lines.)
decoded.erase(std::remove(decoded.begin(), decoded.end(), '\x0d'), decoded.end()); std::erase(decoded, '\x0d');
} }
void SettingsHandler::Reset() void SettingsHandler::Reset()