mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-19 00:15:21 +01:00
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:
parent
8d943ce2bd
commit
829c200fd1
5 changed files with 11 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue