Skip to content
Snippets Groups Projects
Commit a3d54ec4 authored by Wenzel Jakob's avatar Wenzel Jakob
Browse files

removed incorrect usage of std::erase (reported by Brooks Moses)

parent e85c536c
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,10 @@ void Device::init(Device *other) {
void Device::shutdown() {
Assert(m_initialized);
std::remove(m_session->m_devices.begin(), m_session->m_devices.end(), this);
m_session->m_devices.erase(
std::remove(m_session->m_devices.begin(), m_session->m_devices.end(), this),
m_session->m_devices.end()
);
}
void Device::addCallback(DeviceEventListener *callback) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment