summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2023-12-12 13:27:17 -0500
committerLioncash <mai.iam2048@gmail.com>2023-12-12 13:27:17 -0500
commite7f7dde546c5ae8e68d7abc3fbe84b27dea021fd (patch)
treed87f27708f13ce726b40d3e1d8faa1b86c88f182 /Source
parentdf227aa03c2194a977d23f3f6c20863f57c9bc14 (diff)
Formats: Make use of std::erase_if
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/IOS/ES/Formats.cpp4
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();
}