refs #937 Resolved clazy warnings: unnecessary detaching of containers.

This commit is contained in:
Mathew Sutcliffe
2017-04-15 01:19:26 +01:00
parent ce1730b453
commit fce1513dae
25 changed files with 108 additions and 63 deletions

View File

@@ -105,7 +105,7 @@ namespace BlackInput
// FIXME: Take the first device for the time being
// For the future, the user should be able to choose which device
// he wants to use.
CJoystickDeviceData deviceData = m_availableJoystickDevices.first();
const CJoystickDeviceData &deviceData = m_availableJoystickDevices.constFirst();
// Create device
if (FAILED(hr = m_directInput->CreateDevice(deviceData.guidDevice, &m_directInputDevice, nullptr)))