mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
Common/SettingsHandler: Use std::erase in Decrypt()
Same behavior, way less verbose code.
This commit is contained in:
parent
d84ed054ee
commit
04b9f6c28d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue