summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-07-16 17:02:23 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-07-22 12:36:14 (GMT)
commite316b2249f329b4754b23d9cc8c418c3645dc6db (patch)
tree42b385546ecb8bd126b2a5822786509315aca3b4
parentbe1d9a4288e2b17a3d5a699da229076682ef99bd (diff)
downloadQt-e316b2249f329b4754b23d9cc8c418c3645dc6db.zip
Qt-e316b2249f329b4754b23d9cc8c418c3645dc6db.tar.gz
Qt-e316b2249f329b4754b23d9cc8c418c3645dc6db.tar.bz2
Faster condition comes first
Reviewed-by: Marius Storm-Olsen
-rw-r--r--src/corelib/io/qdiriterator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qdiriterator.cpp b/src/corelib/io/qdiriterator.cpp
index 7de0a0b..eae1dfa 100644
--- a/src/corelib/io/qdiriterator.cpp
+++ b/src/corelib/io/qdiriterator.cpp
@@ -240,7 +240,7 @@ bool QDirIteratorPrivate::shouldFollowDirectory(const QFileInfo &fileInfo)
return false;
// Check symlinks
- if (fileInfo.isSymLink() && !(iteratorFlags & QDirIterator::FollowSymlinks)) {
+ if (!(iteratorFlags & QDirIterator::FollowSymlinks) && fileInfo.isSymLink()) {
// Follow symlinks only if FollowSymlinks was passed
return false;
}