Index: sources/storage/FileHandler.cpp =================================================================== diff -u -re961fc7bcdeba8ffab9c96da20244b07405f8f99 -ra5c75192af33a9284e4b4886df0c337ba6fcc9f9 --- sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision e961fc7bcdeba8ffab9c96da20244b07405f8f99) +++ sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision a5c75192af33a9284e4b4886df0c337ba6fcc9f9) @@ -49,7 +49,7 @@ << QDate::currentDate().toString("yyyy_MM_dd") << " " << QTime::currentTime().toString("HH:mm:ss" ) << " " << mCritical - << endl; + << Qt::endl; } ++count; } @@ -340,7 +340,7 @@ // if it is breaks // else adds the file to the list and continues. // DEBUG: qDebug() << "%" << totalSizeStorage << totalSizeFiles << totalSizeRetain << totalSizeFiles - totalSizeRetain << vRetainPercent; - quint64 totalSizeRemoved = 0; + quint64 totalSizeRemoved = 0; Q_UNUSED(totalSizeRemoved); for (auto it = fileInfoListAll.crbegin(); it != fileInfoListAll.crend(); ++it) { // (totalSizeFiles <= totalSizeRetain) has been checked above and didn't return; , // so at least one file should be checked and then check again in the loop.