forked from qt-creator/qt-creator
Fix clang warnings about unwanted copies in range loops
Change-Id: I11ae3317fd251a463809ee48917d2daf0f8b43d1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -616,7 +616,7 @@ QVector<AndroidDeviceInfo> AndroidConfig::connectedDevices(const FilePath &adbTo
|
||||
if (adbDevs.empty())
|
||||
return devices;
|
||||
|
||||
for (const QString line : adbDevs) // remove the daemon logs
|
||||
for (const QString &line : adbDevs) // remove the daemon logs
|
||||
if (line.startsWith("* daemon"))
|
||||
adbDevs.removeOne(line);
|
||||
adbDevs.removeFirst(); // remove "List of devices attached" header line
|
||||
|
||||
Reference in New Issue
Block a user