diff options
| author | Olivier De Cannière <olivier.decanniere@qt.io> | 2024-06-04 12:04:24 +0200 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2024-06-04 21:27:47 +0200 |
| commit | a0aee4de08647da95d25fd32ade13ca67b6b4fea (patch) | |
| tree | 97cdc8ff83a9651b2ca8af4158d9aeb7d2969a73 /src/qmlcompiler/qqmljscompilerstats.cpp | |
| parent | 7b282e9f69df4ae4c7ed1ceba70999be0fec522d (diff) | |
QmlCompiler: Remove duplicate QIODevice::ReadOnly flag
Change-Id: Ie5b60d574538f799b6d635d111f214cd95249df0
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljscompilerstats.cpp')
| -rw-r--r-- | src/qmlcompiler/qqmljscompilerstats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljscompilerstats.cpp b/src/qmlcompiler/qqmljscompilerstats.cpp index 9e564834e7..7cef0f39c3 100644 --- a/src/qmlcompiler/qqmljscompilerstats.cpp +++ b/src/qmlcompiler/qqmljscompilerstats.cpp @@ -36,7 +36,7 @@ void AotStats::insert(const AotStats &other) std::optional<QList<QString>> extractAotstatsFilesList(const QString &aotstatsListPath) { QFile aotstatsListFile(aotstatsListPath); - if (!aotstatsListFile.open(QIODevice::ReadOnly | QIODevice::ReadOnly | QIODevice::Text)) { + if (!aotstatsListFile.open(QIODevice::ReadOnly | QIODevice::Text)) { qDebug().noquote() << u"Could not open \"%1\" for reading"_s.arg(aotstatsListFile.fileName()); return std::nullopt; } |
