Remove .values() call in foreach
foreach already knows how to iterate over the values without the need to create an intermediate qlist Change-Id: Icf6bacc3472e09fde6fe3735086cea289ca0fa96 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
parent
ae293c1cb2
commit
2f38bfe0a3
@ -184,7 +184,7 @@ void QXcbConnection::xi2Select(xcb_window_t window)
|
|||||||
mask.mask_len = sizeof(bitMask);
|
mask.mask_len = sizeof(bitMask);
|
||||||
mask.mask = xiBitMask;
|
mask.mask = xiBitMask;
|
||||||
// Enable each touchscreen
|
// Enable each touchscreen
|
||||||
foreach (XInput2DeviceData *dev, m_touchDevices.values()) {
|
foreach (XInput2DeviceData *dev, m_touchDevices) {
|
||||||
mask.deviceid = dev->xiDeviceInfo->deviceid;
|
mask.deviceid = dev->xiDeviceInfo->deviceid;
|
||||||
Status result = XISelectEvents(xDisplay, window, &mask, 1);
|
Status result = XISelectEvents(xDisplay, window, &mask, 1);
|
||||||
// If we have XInput >= 2.2 and successfully enable a touchscreen, then
|
// If we have XInput >= 2.2 and successfully enable a touchscreen, then
|
||||||
|
Loading…
Reference in New Issue
Block a user