mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 13:43:33 +01:00
Formats: Make use of std::erase_if
This commit is contained in:
parent
df227aa03c
commit
e7f7dde546
@ -614,9 +614,7 @@ std::string SharedContentMap::AddSharedContent(const std::array<u8, 20>& sha1)
|
|||||||
|
|
||||||
bool SharedContentMap::DeleteSharedContent(const std::array<u8, 20>& sha1)
|
bool SharedContentMap::DeleteSharedContent(const std::array<u8, 20>& sha1)
|
||||||
{
|
{
|
||||||
m_entries.erase(std::remove_if(m_entries.begin(), m_entries.end(),
|
std::erase_if(m_entries, [&sha1](const auto& entry) { return entry.sha1 == sha1; });
|
||||||
[&sha1](const auto& entry) { return entry.sha1 == sha1; }),
|
|
||||||
m_entries.end());
|
|
||||||
return WriteEntries();
|
return WriteEntries();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user