aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsmodelmanagerinterface.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2025-04-11 11:51:03 +0200
committerhjk <[email protected]>2025-04-11 14:51:57 +0000
commiteeaa93fc749d36abb7b2f175ba25d36cbd95d1c6 (patch)
tree2fe3132c1431f3a365191e844db9031d950d3880 /src/libs/qmljs/qmljsmodelmanagerinterface.cpp
parenta460ec1641f6fb39901bb38d930a209a9078efaf (diff)
Replace most expected_str by Utils::Result
Keep it in Axivion dto, which is generated. Change-Id: I83a12de6234ac7b0218b369875bdc72d25dbadfb Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Jarek Kobus <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsmodelmanagerinterface.cpp')
-rw-r--r--src/libs/qmljs/qmljsmodelmanagerinterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp
index 10cbe797837..b375434bff3 100644
--- a/src/libs/qmljs/qmljsmodelmanagerinterface.cpp
+++ b/src/libs/qmljs/qmljsmodelmanagerinterface.cpp
@@ -925,7 +925,7 @@ bool ModelManagerInterface::findNewQmlLibraryInPath(const Utils::FilePath &path,
}
// found a new library!
- const expected_str<QByteArray> contents = qmldirFile.fileContents();
+ const Result<QByteArray> contents = qmldirFile.fileContents();
if (!contents)
return false;
QString qmldirData = QString::fromUtf8(*contents);
@@ -1066,7 +1066,7 @@ void ModelManagerInterface::parseLoop(QSet<Utils::FilePath> &scannedPaths,
contents = entry.first;
documentRevision = entry.second;
} else {
- const expected_str<QByteArray> fileContents = fileName.fileContents();
+ const Result<QByteArray> fileContents = fileName.fileContents();
if (fileContents) {
QTextStream ins(*fileContents);
contents = ins.readAll();