Commit 89e589a4 authored by Patrick José Pereira's avatar Patrick José Pereira

MAVLinkProtoco: Use reference in for loop

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent bb149b52
......@@ -461,7 +461,7 @@ void MAVLinkProtocol::checkForLostLogFiles(void)
QFileInfoList fileInfoList = tempDir.entryInfoList(QStringList(filter), QDir::Files);
//qDebug() << "Orphaned log file count" << fileInfoList.count();
for(const QFileInfo fileInfo: fileInfoList) {
for(const QFileInfo& fileInfo: fileInfoList) {
//qDebug() << "Orphaned log file" << fileInfo.filePath();
if (fileInfo.size() == 0) {
// Delete all zero length files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment