diff options
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() }; |
