mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
I2CBus: Make use of std::erase_if
This commit is contained in:
parent
ff0e7fbf08
commit
df227aa03c
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ void I2CBus::AddSlave(I2CSlave* slave)
|
||||||
|
|
||||||
void I2CBus::RemoveSlave(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()
|
void I2CBus::Reset()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue