From ff0e7fbf08e1417472fae0bb4677d1ac22a49e9c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 13:26:16 -0500 Subject: [PATCH] GeckoCodeConfig: Make use of std::erase_if --- Source/Core/Core/GeckoCodeConfig.cpp | 4 +--- 1 file changed, 1 insertion(+), 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 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) {