Switch from foreach to for

This commit is contained in:
David Sansome 2014-04-23 21:13:58 +10:00
parent 25ee987ec7
commit 98a328cf97
1 changed files with 1 additions and 1 deletions

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