forked from qt-creator/qt-creator
ProjectExplorer: Drop the target argument
... from ProjectNode::targetData and setTargetData, and rename them to data and setData. It was only used in the implementation to retrieve the right node, instead move the responsibility to find the right node to the caller. Current assumption is that the functions were always called on the right node already. Change-Id: I9ae7e8a7ed5c79b924b99fd9a6a652bad56d114a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -194,7 +194,7 @@ bool AndroidDeployQtStep::init(QList<const BuildStep *> &earlierSteps)
|
||||
|
||||
QString jsonFile;
|
||||
if (const ProjectNode *node = target()->project()->findNodeForBuildKey(rc->buildKey()))
|
||||
jsonFile = node->targetData(Constants::AndroidDeploySettingsFile, target()).toString();
|
||||
jsonFile = node->data(Constants::AndroidDeploySettingsFile).toString();
|
||||
if (jsonFile.isEmpty()) {
|
||||
emit addOutput(tr("Cannot find the androiddeploy Json file."), OutputFormat::Stderr);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user