diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2020-06-02 13:57:39 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2020-06-04 15:51:51 +0200 |
commit | 9cefaca1ea908df39edee03ef888a40690d355af (patch) | |
tree | 4b9b70afc4215c45130a96c01e4d056b0ae362d1 /src/qml/jsruntime/qv4compilationunitmapper_win.cpp | |
parent | d0c177f0ee42d7c9454f0093635a5f68362f2283 (diff) |
Remove winrt
Task-number: QTBUG-84434
Change-Id: If8f57f00726868a3540c877d07fca761618e4f08
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4compilationunitmapper_win.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4compilationunitmapper_win.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qml/jsruntime/qv4compilationunitmapper_win.cpp b/src/qml/jsruntime/qv4compilationunitmapper_win.cpp index 9e8babc5e6..b4f0a6ff4d 100644 --- a/src/qml/jsruntime/qv4compilationunitmapper_win.cpp +++ b/src/qml/jsruntime/qv4compilationunitmapper_win.cpp @@ -56,16 +56,10 @@ CompiledData::Unit *CompilationUnitMapper::open(const QString &cacheFileName, co // ### TODO: fix up file encoding/normalization/unc handling once QFileSystemEntry // is exported from QtCore. HANDLE handle = -#if defined(Q_OS_WINRT) - CreateFile2(reinterpret_cast<const wchar_t*>(cacheFileName.constData()), - GENERIC_READ | GENERIC_EXECUTE, FILE_SHARE_READ, - OPEN_EXISTING, nullptr); -#else CreateFile(reinterpret_cast<const wchar_t*>(cacheFileName.constData()), GENERIC_READ | GENERIC_EXECUTE, FILE_SHARE_READ, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr); -#endif if (handle == INVALID_HANDLE_VALUE) { *errorString = qt_error_string(GetLastError()); return nullptr; |