Avoid copy-construct QString in for loop

This commit is contained in:
Chocobo1
2018-08-20 15:18:35 +08:00
committed by sledgehammer999
parent 30bc4b837e
commit f1ff74a926

View File

@@ -73,7 +73,7 @@ namespace
// python 2: remove "*.pyc" files
const QStringList files = QDir(dir).entryList(QDir::Files);
for (const QString file : files) {
for (const QString &file : files) {
if (file.endsWith(".pyc"))
Utils::Fs::forceRemove(file);
}