Don't call QDirIterator::filePath() twice

This commit is contained in:
Robert Loehning
2010-05-27 21:23:44 +02:00
parent 6ac8bd0c1b
commit 49d5cacd35

View File

@@ -75,10 +75,10 @@ QStringList FindInFiles::files()
fileNameFilters(),
QDir::Files|QDir::Readable,
QDirIterator::Subdirectories);
while (it.hasNext()) {
it.next();
fileList << it.filePath();
}
while (it.hasNext())
fileList << it.next();
return fileList;
}