mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
avoid copy in foreach() loop in QDirIteratorPrivate::matchesFilters()
This commit is contained in:
parent
996edf7e69
commit
6cf517267f
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ bool QDirIteratorPrivate::matchesFilters(const QString &fileName, const QFileInf
|
||||||
#ifndef QT_NO_REGEXP
|
#ifndef QT_NO_REGEXP
|
||||||
// Pass all entries through name filters, except dirs if the AllDirs
|
// Pass all entries through name filters, except dirs if the AllDirs
|
||||||
if (!nameFilters.isEmpty() && !((filters & QDir::AllDirs) && fi.isDir())) {
|
if (!nameFilters.isEmpty() && !((filters & QDir::AllDirs) && fi.isDir())) {
|
||||||
foreach (const QRegExp iter, nameRegExps) {
|
foreach (const QRegExp &iter, nameRegExps) {
|
||||||
if (iter.exactMatch(fileName)) {
|
if (iter.exactMatch(fileName)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue