mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
GeckoCodeConfig: Make use of std::erase_if
This commit is contained in:
@ -138,9 +138,7 @@ std::vector<GeckoCode> LoadCodes(const Common::IniFile& globalIni, const Common:
|
||||
|
||||
GeckoCode gcode;
|
||||
|
||||
lines.erase(std::remove_if(lines.begin(), lines.end(),
|
||||
[](const auto& line) { return line.empty() || line[0] == '#'; }),
|
||||
lines.end());
|
||||
std::erase_if(lines, [](const auto& line) { return line.empty() || line[0] == '#'; });
|
||||
|
||||
for (auto& line : lines)
|
||||
{
|
||||
|
Reference in New Issue
Block a user