Browse Source

Avoid copy-construct QString in for loop

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
254782def6
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/search/searchpluginmanager.cpp

2
src/base/search/searchpluginmanager.cpp

@ -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…
Cancel
Save