mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Watches: Make use of std::erase_if
This commit is contained in:
parent
2c6bf2d224
commit
50e4dc5dba
@ -43,9 +43,7 @@ const std::vector<Watch>& 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)
|
||||
|
Loading…
Reference in New Issue
Block a user