1
0
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:
David Sansome 2014-04-23 21:13:58 +10:00
parent 25ee987ec7
commit 98a328cf97

View File

@ -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);
}