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:
Christian Kandeler
2020-06-03 13:45:30 +02:00
parent e2ae2ad41d
commit 0d60ee3906
4 changed files with 4 additions and 5 deletions

View File

@@ -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