diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2018-04-26 15:12:44 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2018-05-02 14:55:21 +0000 |
commit | 8bbe795c39b004e5b421e8bdb8674ce6cba40b3c (patch) | |
tree | 730bdf2edec6294237fe70fe9020b321f1177ac8 /src/plugins/resourceeditor/resourceeditorplugin.cpp | |
parent | d3329545674ba6ee0233477f0821741e496c6b77 (diff) |
ProjectExplorer: Make FolderNode::replaceSubtree take a unique_ptr
Change-Id: I8e853c00ec24838bdca342e3f1a1b1213f32ef93
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorplugin.cpp')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index c98035cdb5..4421b7f3c1 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -221,8 +221,8 @@ void ResourceEditorPlugin::extensionsInitialized() FolderNode *const pn = file->parentFolderNode(); QTC_ASSERT(pn, continue); const Utils::FileName path = file->filePath(); - pn->replaceSubtree(file, new ResourceTopLevelNode(path, file->isGenerated(), - QString(), pn)); + pn->replaceSubtree(file, std::make_unique<ResourceTopLevelNode>(path, file->isGenerated(), + QString(), pn)); } }); } |