forked from qt-creator/qt-creator
ProjectNodes: Refactor runConfigurationsFor()
Rename to runConfigurations() and remove the node argument which is available as 'this'. Adjust const-ness of node argument in RunConfigurationFactory::runConfigurationsForNode Change-Id: Icb63e96a305152f90135a2656536de2581faafaf Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -817,11 +817,11 @@ bool QmakePriFileNode::deploysFolder(const QString &folder) const
|
||||
return false;
|
||||
}
|
||||
|
||||
QList<ProjectExplorer::RunConfiguration *> QmakePriFileNode::runConfigurationsFor(Node *node)
|
||||
QList<ProjectExplorer::RunConfiguration *> QmakePriFileNode::runConfigurations() const
|
||||
{
|
||||
QmakeRunConfigurationFactory *factory = QmakeRunConfigurationFactory::find(m_project->activeTarget());
|
||||
if (factory)
|
||||
return factory->runConfigurationsForNode(m_project->activeTarget(), node);
|
||||
return factory->runConfigurationsForNode(m_project->activeTarget(), this);
|
||||
return QList<ProjectExplorer::RunConfiguration *>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user