Use 'shrink_to_fit' instead of 'swap'
This commit is contained in:
parent
3914bd0062
commit
f87f5a3f72
@ -772,9 +772,7 @@ bool JoystickImpl::openDInput(unsigned int index)
|
||||
entry.productId = m_identification.productId;
|
||||
|
||||
joystickBlacklist.push_back(entry);
|
||||
|
||||
// Pre-C++11 shrink_to_fit()
|
||||
JoystickBlacklist(joystickBlacklist.begin(), joystickBlacklist.end()).swap(joystickBlacklist);
|
||||
joystickBlacklist.shrink_to_fit();
|
||||
}
|
||||
|
||||
m_device->Release();
|
||||
|
Loading…
Reference in New Issue
Block a user