From 50e4dc5dbad3993d00b1c4d0d4a02d3c40edc0fc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Dec 2023 13:24:40 -0500 Subject: [PATCH] Watches: Make use of std::erase_if --- Source/Core/Common/Debug/Watches.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Core/Common/Debug/Watches.cpp b/Source/Core/Common/Debug/Watches.cpp index c476665a41..beeab99086 100644 --- a/Source/Core/Common/Debug/Watches.cpp +++ b/Source/Core/Common/Debug/Watches.cpp @@ -43,9 +43,7 @@ const std::vector& Watches::GetWatches() const void Watches::UnsetWatch(u32 address) { - m_watches.erase(std::remove_if(m_watches.begin(), m_watches.end(), - [address](const auto& watch) { return watch.address == address; }), - m_watches.end()); + std::erase_if(m_watches, [address](const auto& watch) { return watch.address == address; }); } void Watches::UpdateWatch(std::size_t index, u32 address, std::string name)