forked from qt-creator/qt-creator
ProjectExplorer: Remove Node::m_id
It was only used within cmake, in a role that is nowadays covered by buildKey. Change-Id: I4fd77c06a3bb8965db5235315cb017c7b548fbaa Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -840,10 +840,10 @@ static CMakeTargetNode *createTargetNode(const QHash<Utils::FileName, ProjectNod
|
||||
ProjectNode *cmln = cmakeListsNodes.value(dir);
|
||||
QTC_ASSERT(cmln, return nullptr);
|
||||
|
||||
QByteArray targetId = CMakeTargetNode::generateId(dir, displayName);
|
||||
QString targetId = CMakeTargetNode::generateId(dir, displayName);
|
||||
|
||||
CMakeTargetNode *tn = static_cast<CMakeTargetNode *>(cmln->findNode([&targetId](const Node *n) {
|
||||
return n->id() == targetId;
|
||||
return n->buildKey() == targetId;
|
||||
}));
|
||||
if (!tn) {
|
||||
auto newNode = std::make_unique<CMakeTargetNode>(dir, displayName);
|
||||
|
||||
Reference in New Issue
Block a user