mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
Avoid copy-construct QString in for loop
This commit is contained in:
parent
be419d5ecf
commit
254782def6
@ -73,7 +73,7 @@ namespace
|
|||||||
|
|
||||||
// python 2: remove "*.pyc" files
|
// python 2: remove "*.pyc" files
|
||||||
const QStringList files = QDir(dir).entryList(QDir::Files);
|
const QStringList files = QDir(dir).entryList(QDir::Files);
|
||||||
for (const QString file : files) {
|
for (const QString &file : files) {
|
||||||
if (file.endsWith(".pyc"))
|
if (file.endsWith(".pyc"))
|
||||||
Utils::Fs::forceRemove(file);
|
Utils::Fs::forceRemove(file);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user