diff options
| author | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2024-01-24 14:39:30 +0100 |
|---|---|---|
| committer | Dmitrii Akshintsev <dmitrii.akshintsev@qt.io> | 2024-01-30 17:14:09 +0100 |
| commit | 37ef144704c09e23fd2edfd49daf86b368147d15 (patch) | |
| tree | 30affc7039113df74006d84bc09d1be2ed260578 /tools/qmlformat/qmlformat.cpp | |
| parent | 71a7d98bd273c56e29eb355941ca4fa0b3243926 (diff) | |
DOM refactoring. Remove LoadOptions
Only defaultLoad is being used, hence it doesn't make sense to have them
at all at the current stage
Task-number: QTBUG-119550
Change-Id: I761e7c55d6aaafa29d234ace4b4b65bcc46a9855
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/qmlformat/qmlformat.cpp')
| -rw-r--r-- | tools/qmlformat/qmlformat.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/qmlformat/qmlformat.cpp b/tools/qmlformat/qmlformat.cpp index adaccb8d4a..1262bb6391 100644 --- a/tools/qmlformat/qmlformat.cpp +++ b/tools/qmlformat/qmlformat.cpp @@ -133,14 +133,12 @@ static std::pair<DomItem, bool> parse(const QString &filename) // placeholder for a node // containing metadata (ExternalItemInfo) about the loaded file DomItem fMetadataItem; - envPtr->loadFile( - FileToLoad::fromFileSystem(envPtr, filename), - // callback called when everything is loaded that receives the - // loaded external file pair (path, oldValue, newValue) - [&fMetadataItem](Path, const DomItem &, const DomItem &extItemInfo) { - fMetadataItem = extItemInfo; - }, - LoadOption::DefaultLoad); + envPtr->loadFile(FileToLoad::fromFileSystem(envPtr, filename), + // callback called when everything is loaded that receives the + // loaded external file pair (path, oldValue, newValue) + [&fMetadataItem](Path, const DomItem &, const DomItem &extItemInfo) { + fMetadataItem = extItemInfo; + }); auto fItem = fMetadataItem.fileObject(); auto filePtr = getFileItemOwner(fItem); return { fItem, filePtr && filePtr->isValid() }; |
