diff options
| author | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-12-09 14:38:48 +0100 |
|---|---|---|
| committer | Olivier De Cannière <olivier.decanniere@qt.io> | 2025-12-12 13:55:11 +0100 |
| commit | 1ee91dc6047896ff83d4a621c132d37111e5b0ab (patch) | |
| tree | 322a11ebcdfb1276455bdc23cfde93d0d078bb07 /src | |
| parent | 7974375103782db092f1cf0429ebfb259de60ff4 (diff) | |
QV4: Mark CompilationUnit::saveToDisk const
Change-Id: I6141df5776471aea755d0b57b2015571b250088a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src')
| -rw-r--r-- | src/qml/common/qv4compileddata.cpp | 2 | ||||
| -rw-r--r-- | src/qml/common/qv4compileddata_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/common/qv4compileddata.cpp b/src/qml/common/qv4compileddata.cpp index d4169a65b3..c290ec25e3 100644 --- a/src/qml/common/qv4compileddata.cpp +++ b/src/qml/common/qv4compileddata.cpp @@ -167,7 +167,7 @@ bool CompilationUnit::loadFromDisk( return false; } -bool CompilationUnit::saveToDisk(const QUrl &unitUrl, QString *errorString) +bool CompilationUnit::saveToDisk(const QUrl &unitUrl, QString *errorString) const { if (unitData()->sourceTimeStamp == 0) { *errorString = QStringLiteral("Missing time stamp for source file"); diff --git a/src/qml/common/qv4compileddata_p.h b/src/qml/common/qv4compileddata_p.h index e00e3aedd0..5d43fb490a 100644 --- a/src/qml/common/qv4compileddata_p.h +++ b/src/qml/common/qv4compileddata_p.h @@ -1632,7 +1632,7 @@ public: Q_QML_EXPORT static QString localCacheFilePath(const QUrl &url); Q_QML_EXPORT bool loadFromDisk( const QUrl &url, const QDateTime &sourceTimeStamp, QString *errorString); - Q_QML_EXPORT bool saveToDisk(const QUrl &unitUrl, QString *errorString); + Q_QML_EXPORT bool saveToDisk(const QUrl &unitUrl, QString *errorString) const; int importCount() const { return qmlData->nImports; } const CompiledData::Import *importAt(int index) const { return qmlData->importAt(index); } |
