forked from qt-creator/qt-creator
qmlproject: no need to use raw pointer here
Change-Id: Idbd97a7ab4a78d3e56b3f444b7b48111d7823dd6 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user