ProjectNodes: Use QVector instead of QList for LocationInfo

Change-Id: I5bad9e1849b9d752de24626013c9102242d11a0a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tobias Hunger
2019-07-26 13:52:07 +02:00
parent c71258a0df
commit 9ae4510e27
5 changed files with 14 additions and 10 deletions

View File

@@ -314,7 +314,7 @@ void addBacktraceInformation(FolderNode *node,
const QDir &sourceDir,
int backtraceIndex)
{
QList<FolderNode::LocationInfo> info;
QVector<FolderNode::LocationInfo> info;
// Set up a default target path:
FilePath targetPath = node->filePath().pathAppended("CMakeLists.txt");
while (backtraceIndex != -1) {

View File

@@ -800,7 +800,7 @@ void ServerModeReader::addTargets(
QTC_ASSERT(tNode, qDebug() << "No target node for" << t->sourceDirectory << t->name; continue);
tNode->setTargetInformation(t->artifacts, t->type);
tNode->setBuildDirectory(t->buildDirectory);
QList<FolderNode::LocationInfo> info;
QVector<FolderNode::LocationInfo> info;
// Set up a default target path:
FilePath targetPath = t->sourceDirectory.pathAppended("CMakeLists.txt");
for (CrossReference *cr : qAsConst(t->crossReferences)) {