qmlproject: no need to use raw pointer here

Change-Id: Idbd97a7ab4a78d3e56b3f444b7b48111d7823dd6
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Tim Jenssen
2020-07-20 16:25:53 +02:00
parent 2fc89375c6
commit f323a80d57

View File

@@ -371,7 +371,7 @@ void QmlBuildSystem::generateProjectTree()
auto newRoot = std::make_unique<QmlProjectNode>(project()); auto newRoot = std::make_unique<QmlProjectNode>(project());
for (const QString &f : m_projectItem.data()->files()) { for (const QString &f : m_projectItem->files()) {
const Utils::FilePath fileName = Utils::FilePath::fromString(f); const Utils::FilePath fileName = Utils::FilePath::fromString(f);
const FileType fileType = (fileName == projectFilePath()) const FileType fileType = (fileName == projectFilePath())
? FileType::Project : FileNode::fileTypeForFileName(fileName); ? FileType::Project : FileNode::fileTypeForFileName(fileName);