From 888a8692b49d393803a832782b1b74ae0621c952 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 13:30:39 -0500 Subject: [PATCH] SysConf: Make use of std::erase_if --- Source/Core/Core/SysConf.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Core/Core/SysConf.cpp b/Source/Core/Core/SysConf.cpp index d90a9d95e7..e3b44142b0 100644 --- a/Source/Core/Core/SysConf.cpp +++ b/Source/Core/Core/SysConf.cpp @@ -250,9 +250,7 @@ SysConf::Entry* SysConf::GetOrAddEntry(std::string_view key, Entry::Type type) void SysConf::RemoveEntry(std::string_view key) { - m_entries.erase(std::remove_if(m_entries.begin(), m_entries.end(), - [&key](const auto& entry) { return entry.name == key; }), - m_entries.end()); + std::erase_if(m_entries, [&key](const auto& entry) { return entry.name == key; }); } void SysConf::InsertDefaultEntries()