mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 08:48:07 -06:00
Avoid copy-construct QString in for loop
This commit is contained in:
committed by
sledgehammer999
parent
30bc4b837e
commit
f1ff74a926
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user