mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-24 12:25:00 +00:00
review comments applied
This commit is contained in:
parent
37014394fd
commit
d804a66aa2
5 changed files with 32 additions and 24 deletions
|
@ -21,8 +21,8 @@ int EqueueInternal::addEvent(const EqueueEvent& event) {
|
|||
}
|
||||
|
||||
int EqueueInternal::removeEvent(u64 id) {
|
||||
const auto& event_q = std::find_if(m_events.cbegin(), m_events.cend(),
|
||||
[id](auto& ev) { return ev.event.ident == id; });
|
||||
const auto& event_q =
|
||||
std::ranges::find_if(m_events, [id](auto& ev) { return ev.event.ident == id; });
|
||||
ASSERT(event_q != m_events.cend());
|
||||
m_events.erase(event_q);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue