mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01:00
I2CBus: Make use of std::erase_if
This commit is contained in:
parent
ff0e7fbf08
commit
df227aa03c
@ -14,7 +14,7 @@ void I2CBus::AddSlave(I2CSlave* slave)
|
||||
|
||||
void I2CBus::RemoveSlave(I2CSlave* slave)
|
||||
{
|
||||
m_slaves.erase(std::remove(m_slaves.begin(), m_slaves.end(), slave), m_slaves.end());
|
||||
std::erase(m_slaves, slave);
|
||||
}
|
||||
|
||||
void I2CBus::Reset()
|
||||
|
Loading…
x
Reference in New Issue
Block a user