forked from qt-creator/qt-creator
Don't call QDirIterator::filePath() twice
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user