Fix clazy warning
Missing reference in range-for with non trivial type (QBluetoothDeviceInfo) Change-Id: I6f2e3092054376fdc52acdbeba149fe1a02b88fe Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
This commit is contained in:
parent
cd19f82503
commit
fbc88b414c
|
@ -116,7 +116,7 @@ void Device::addDevice(const QBluetoothDeviceInfo &info)
|
|||
void Device::deviceScanFinished()
|
||||
{
|
||||
const QList<QBluetoothDeviceInfo> foundDevices = discoveryAgent->discoveredDevices();
|
||||
for (auto nextDevice : foundDevices)
|
||||
for (auto &nextDevice : foundDevices)
|
||||
if (nextDevice.coreConfigurations() & QBluetoothDeviceInfo::LowEnergyCoreConfiguration)
|
||||
devices.append(new DeviceInfo(nextDevice));
|
||||
|
||||
|
|
Loading…
Reference in New Issue