Avoid creation of temporary lists of ProjectNodes

Change-Id: Iac84f7f95291fb3b12a071a066d358aaab309c52
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-04-04 16:43:44 +02:00
parent 6b661ef1be
commit d8de6c88e9
13 changed files with 56 additions and 94 deletions

View File

@@ -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;
}