forked from qt-creator/qt-creator
Avoid creation of temporary lists of ProjectNodes
Change-Id: Iac84f7f95291fb3b12a071a066d358aaab309c52 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -115,9 +115,7 @@ bool QmakeBuildSystem::supportsAction(Node *context, ProjectAction action, const
|
||||
const FolderNode *folder = node->asFolderNode();
|
||||
if (folder) {
|
||||
FilePaths list;
|
||||
const auto folderNodes = folder->folderNodes();
|
||||
for (FolderNode *f : folderNodes)
|
||||
list << f->filePath();
|
||||
folder->forEachFolderNode([&](FolderNode *f) { list << f->filePath(); });
|
||||
if (n->deploysFolder(FileUtils::commonPath(list).toString()))
|
||||
addExistingFiles = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user