mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Avoid copy-construct QString in for loop
This commit is contained in:
parent
30bc4b837e
commit
f1ff74a926
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue