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(), fileNameFilters(),
QDir::Files|QDir::Readable, QDir::Files|QDir::Readable,
QDirIterator::Subdirectories); QDirIterator::Subdirectories);
while (it.hasNext()) {
it.next(); while (it.hasNext())
fileList << it.filePath(); fileList << it.next();
}
return fileList; return fileList;
} }