mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
SysConf: Make use of std::erase_if
This commit is contained in:
parent
01d15994fe
commit
888a8692b4
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user