GeckoCodeConfig: Make use of std::erase_if

This commit is contained in:
Lioncash 2023-12-12 13:26:16 -05:00
parent 84ae0c1c7e
commit ff0e7fbf08
1 changed files with 1 additions and 3 deletions

View File

@ -138,9 +138,7 @@ std::vector<GeckoCode> LoadCodes(const Common::IniFile& globalIni, const Common:
GeckoCode gcode; GeckoCode gcode;
lines.erase(std::remove_if(lines.begin(), lines.end(), std::erase_if(lines, [](const auto& line) { return line.empty() || line[0] == '#'; });
[](const auto& line) { return line.empty() || line[0] == '#'; }),
lines.end());
for (auto& line : lines) for (auto& line : lines)
{ {