diff options
author | hjk <hjk@qt.io> | 2019-03-01 08:38:17 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-03-01 09:18:52 +0000 |
commit | 4e0ff112e4cb97d2179287e6bd3cb707dc64406d (patch) | |
tree | d4975fef43db69aa575042bd8f833988a22ecb10 /src/plugins/resourceeditor/resourceeditorplugin.cpp | |
parent | e3a7aa1ad24c78ea220112d207f452425e316a4d (diff) |
ResourceEditor: Change signature of ResourceTopLevelNode ctor
Replace the parent node by the only data item it is used for to
make it more clear that this is not about tree structure.
Also move the parameter with possible default to the last position.
Change-Id: Ibf62328dea335b5999595e5cebb36051ec84bc3a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorplugin.cpp')
-rw-r--r-- | src/plugins/resourceeditor/resourceeditorplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index c7de69cb63..f5c3fa1928 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -217,7 +217,7 @@ void ResourceEditorPlugin::extensionsInitialized() FolderNode *const pn = file->parentFolderNode(); QTC_ASSERT(pn, continue); const Utils::FileName path = file->filePath(); - auto topLevel = std::make_unique<ResourceTopLevelNode>(path, QString(), pn); + auto topLevel = std::make_unique<ResourceTopLevelNode>(path, pn->filePath()); topLevel->setIsGenerated(file->isGenerated()); pn->replaceSubtree(file, std::move(topLevel)); } |