mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user