mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 20:34:39 +01:00
Switch from foreach to for
This commit is contained in:
parent
25ee987ec7
commit
98a328cf97
@ -154,7 +154,7 @@ int OrganiseDialog::SetFilenames(const QStringList& filenames,
|
||||
// If it's a directory, add all the files inside.
|
||||
if (QFileInfo(filename).isDir()) {
|
||||
const QDir dir(filename);
|
||||
foreach (const QString& entry, dir.entryList(
|
||||
for (const QString& entry : dir.entryList(
|
||||
QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot | QDir::Readable)) {
|
||||
filenames_copy << dir.filePath(entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user