GeckoCodeConfig: Make use of std::erase_if
This commit is contained in:
parent
84ae0c1c7e
commit
ff0e7fbf08
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue