forked from qt-creator/qt-creator
ProjectExplorer: Add and use addNestedNode(...) that takes unique_ptr
Change-Id: Ieb26721d053111fb350494e31d1f6da3fe642420 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -209,7 +209,8 @@ void AutotoolsProject::makefileParsingFinished()
|
||||
auto newRoot = std::make_unique<AutotoolsProjectNode>(projectDirectory());
|
||||
for (const QString &f : m_files) {
|
||||
const Utils::FileName path = Utils::FileName::fromString(f);
|
||||
newRoot->addNestedNode(new FileNode(path, FileNode::fileTypeForFileName(path), false));
|
||||
newRoot->addNestedNode(std::make_unique<FileNode>(path, FileNode::fileTypeForFileName(path),
|
||||
false));
|
||||
}
|
||||
setRootProjectNode(std::move(newRoot));
|
||||
|
||||
|
Reference in New Issue
Block a user