diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-07-19 10:13:26 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-07-19 18:19:46 +0000 |
commit | 6a1667bc4e6d1074f547434d714cd47ed8ebfc41 (patch) | |
tree | 84285121878205ec1f5a2c2f5ddff3a20c1fc27f /src/qml/qml/qqmltypeloader_p.h | |
parent | e0e50532d29d02c8bcbab01dbfb72377102eaf8f (diff) |
Improve robustness of qml cache expiry checking
Instead of relying on two time stamps in the file system (source file and cache
file), make the determination on whether the source file is newer than the
cache solely depend on the time stamp of only the source file. This means that
when cache files are stored in archives for example their modification date
does not need to be preserved upon extraction.
Change-Id: I0b4362663868c6fb9bd7e106028161b2d67274d4
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h index 3e815878f8..4c57306ed7 100644 --- a/src/qml/qml/qqmltypeloader_p.h +++ b/src/qml/qml/qqmltypeloader_p.h @@ -131,7 +131,7 @@ public: class Data { public: - QByteArray readAll(QString *error) const; + QByteArray readAll(QString *error, qint64 *sourceTimeStamp = 0) const; private: friend class QQmlDataBlob; friend class QQmlTypeLoader; |