diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-10-17 16:52:04 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-22 03:54:15 +0200 |
commit | 87e362b1824dab2a2fca238f6283deb9566fdf24 (patch) | |
tree | 8f5471ec44d36d034c99b834ba580d1effc234b3 /src/declarative | |
parent | 3d3e54868e67d0789ee483a0a03990c819d434e2 (diff) | |
download | qt4-tools-87e362b1824dab2a2fca238f6283deb9566fdf24.tar.gz |
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>
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qdeclarativetypeloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativetypeloader.cpp b/src/declarative/qml/qdeclarativetypeloader.cpp index 833fad67d4..b92883ec68 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>; |