diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:27:17 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2023-12-12 13:27:17 -0500 |
| commit | e7f7dde546c5ae8e68d7abc3fbe84b27dea021fd (patch) | |
| tree | d87f27708f13ce726b40d3e1d8faa1b86c88f182 /Source | |
| parent | df227aa03c2194a977d23f3f6c20863f57c9bc14 (diff) | |
Formats: Make use of std::erase_if
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/IOS/ES/Formats.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/Core/IOS/ES/Formats.cpp b/Source/Core/Core/IOS/ES/Formats.cpp index d740f249bb..2826f7aed5 100644 --- a/Source/Core/Core/IOS/ES/Formats.cpp +++ b/Source/Core/Core/IOS/ES/Formats.cpp @@ -614,9 +614,7 @@ std::string SharedContentMap::AddSharedContent(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(), - [&sha1](const auto& entry) { return entry.sha1 == sha1; }), - m_entries.end()); + std::erase_if(m_entries, [&sha1](const auto& entry) { return entry.sha1 == sha1; }); return WriteEntries(); } |
