code-quality: fixed all range-loop warnings which were reported from clazy.

See: `rpi-imager/src/downloadthread.cpp:1015:14: warning: Missing reference in range-for with non trivial type (QByteArray) [clazy-range-loop]`
This commit is contained in:
Marcel Petrick 2022-06-08 17:54:06 +02:00
parent 8d943ce2bd
commit 829c200fd1
5 changed files with 11 additions and 11 deletions

View file

@ -231,7 +231,7 @@ void DownloadExtractThread::extractMultiFileRun()
{
QThread::sleep(1);
auto l = Drivelist::ListStorageDevices();
for (auto i : l)
for (const auto& i : l)
{
if (QByteArray::fromStdString(i.device).toLower() == devlower && i.mountpoints.size() == 1)
{
@ -363,7 +363,7 @@ void DownloadExtractThread::extractMultiFileRun()
_cachefile.remove();
qDebug() << "Deleting extracted files";
for (auto filename : filesExtracted)
for (const auto& filename : filesExtracted)
{
QFileInfo fi(filename);
QString path = fi.path();