ProjectExplorer: Replace FolderNode ctor display argument

... by use of the setter.

Change-Id: Ie6bf15b4dfae4d4e4d98694313b6e7dc9a22c117
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-02-25 18:08:36 +01:00
parent 2aacf26a77
commit ffa88006a5
4 changed files with 11 additions and 13 deletions

View File

@@ -250,8 +250,9 @@ FolderNode *addChildFolderNode(FolderNode *parent, const QString &childName)
{
Utils::FileName parentPath = parent->filePath();
auto node = std::make_unique<FolderNode>(
parentPath.appendPath(childName), NodeType::Folder, childName);
parentPath.appendPath(childName), NodeType::Folder);
FolderNode *childNode = node.get();
childNode->setDisplayName(childName);
parent->addNode(std::move(node));
return childNode;