diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:26:16 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:26:16 -0500 |
| commit | ff0e7fbf08e1417472fae0bb4677d1ac22a49e9c (patch) | |
| tree | c596592b1dbec8965f1906049222d5f31d22bed6 /Source/Core | |
| parent | 84ae0c1c7e43a2517a01f7e8a6cbc037277c6fc1 (diff) | |
GeckoCodeConfig: Make use of std::erase_if
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/GeckoCodeConfig.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/Core/GeckoCodeConfig.cpp b/Source/Core/Core/GeckoCodeConfig.cpp index 350edc3e31..ec16d96e06 100644 --- a/Source/Core/Core/GeckoCodeConfig.cpp +++ b/Source/Core/Core/GeckoCodeConfig.cpp @@ -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) { |
