mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
GeckoCodeConfig: Make use of std::erase_if
This commit is contained in:
parent
84ae0c1c7e
commit
ff0e7fbf08
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue