diff options
author | Simon Hausmann <[email protected]> | 2016-08-07 14:53:57 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2016-08-12 16:54:38 +0000 |
commit | b40d005544cf4b991b797b0058a23dc61e8de5c2 (patch) | |
tree | 9ab3cbda9f719ffa2e8f68ecc140738b8879cae6 /src/qml/compiler/qv4compilationunitmapper_win.cpp | |
parent | f5a05313757e234c35455b2e1d6fbba43bc9ace2 (diff) |
Enable disk cache for files coming from resources
By storing the cached data in QStandardPaths::CacheDir + "/qmlcache/"
+ sha1(filename)
Change-Id: I6a8b4ca701019204fff362504697c3dac9f54bf1
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/compiler/qv4compilationunitmapper_win.cpp')
-rw-r--r-- | src/qml/compiler/qv4compilationunitmapper_win.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4compilationunitmapper_win.cpp b/src/qml/compiler/qv4compilationunitmapper_win.cpp index d58c46c090..7e62cbfe8b 100644 --- a/src/qml/compiler/qv4compilationunitmapper_win.cpp +++ b/src/qml/compiler/qv4compilationunitmapper_win.cpp @@ -49,13 +49,12 @@ QT_BEGIN_NAMESPACE using namespace QV4; -CompiledData::Unit *CompilationUnitMapper::open(const QString &sourcePath, QString *errorString) +CompiledData::Unit *CompilationUnitMapper::open(const QString &cacheFileName, const QString &sourcePath, QString *errorString) { close(); // ### TODO: fix up file encoding/normalization/unc handling once QFileSystemEntry // is exported from QtCore. - const QString cacheFileName = sourcePath + QLatin1Char('c'); HANDLE handle = #if defined(Q_OS_WINRT) CreateFile2(reinterpret_cast<const wchar_t*>(cacheFileName.constData()), |