aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmltypeloader_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2017-03-16 09:44:50 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2017-03-22 12:17:45 +0000
commit5bd11b5a8c2f627bc9c9f1b6c02602772ad67dae (patch)
treee0304e0f11c2e0d89485fd44a8a7d74c30ef907c /src/qml/qml/qqmltypeloader_p.h
parent9b7071637415bdad82bf61caf21603963f7fe21a (diff)
Avoid an extra stat() on the source .qml file when loading cache
For timestamp comparison it is not necessary to create another QFileInfo() object and call exists() and lastModified(), when we can pass that information through from the type loader. Change-Id: I225cd36e672f1f390bddb4e6ebfafa3fc1269795 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmltypeloader_p.h')
-rw-r--r--src/qml/qml/qqmltypeloader_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h
index 0bae857874..1bd2c7f1e1 100644
--- a/src/qml/qml/qqmltypeloader_p.h
+++ b/src/qml/qml/qqmltypeloader_p.h
@@ -134,7 +134,7 @@ public:
class SourceCodeData {
public:
QString readAll(QString *error) const;
- qint64 sourceTimeStamp() const;
+ QDateTime sourceTimeStamp() const;
bool exists() const;
private:
friend class QQmlDataBlob;