diff options
Diffstat (limited to 'src/libs/qmljs/qmljsmodelmanagerinterface.cpp')
| -rw-r--r-- | src/libs/qmljs/qmljsmodelmanagerinterface.cpp | 4 |
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(); |
