mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Fixed clazy warnings: pass large objects by reference to const.
This commit is contained in:
@@ -119,7 +119,7 @@ namespace BlackInput
|
||||
}
|
||||
}
|
||||
|
||||
for (CJoystickDeviceInput input : m_joystickDeviceInputs)
|
||||
for (const CJoystickDeviceInput &input : m_joystickDeviceInputs)
|
||||
{
|
||||
const qint32 buttonIndex = input.m_offset - DIJOFS_BUTTON0;
|
||||
bool isPressed = state.rgbButtons[buttonIndex] & 0x80;
|
||||
|
||||
Reference in New Issue
Block a user