summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-10-17 14:52:04 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-22 01:54:15 (GMT)
commit87e362b1824dab2a2fca238f6283deb9566fdf24 (patch)
tree8f5471ec44d36d034c99b834ba580d1effc234b3
parent3d3e54868e67d0789ee483a0a03990c819d434e2 (diff)
downloadQt-87e362b1824dab2a2fca238f6283deb9566fdf24.zip
Qt-87e362b1824dab2a2fca238f6283deb9566fdf24.tar.gz
Qt-87e362b1824dab2a2fca238f6283deb9566fdf24.tar.bz2
QDeclarativeTypeLoader: Avoid stat() calls to . and ..
Not needed in Qt5, QDirIterator is not used there, Qt5 contains a completely new type cache. Change-Id: Ifb97cfda0589210783bccc65ab27a546e0f1fca8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
-rw-r--r--src/declarative/qml/qdeclarativetypeloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativetypeloader.cpp b/src/declarative/qml/qdeclarativetypeloader.cpp
index 833fad6..b92883e 100644
--- a/src/declarative/qml/qdeclarativetypeloader.cpp
+++ b/src/declarative/qml/qdeclarativetypeloader.cpp
@@ -61,7 +61,7 @@ is responsible for deleting the returned data.
*/
static QSet<QString> *qmlFilesInDirectory(const QString &path)
{
- QDirIterator dir(path, QDir::Files);
+ QDirIterator dir(path, QDir::Files | QDir::NoDotAndDotDot);
if (!dir.hasNext())
return 0;
QSet<QString> *files = new QSet<QString>;