forked from qt-creator/qt-creator
Android: Make two uses of Target::activeBuildConfiguration() explicit
This avoid the QTC_ASSERT that guards the implicit use in BuildStep:: buildConfiguration(). In the current architecture the use cannot be avoided, but it goes away when Run and Deploy are moved below Build instead of Target, as planned. Change-Id: I6020a0854ea99f0102372341163dda6b4b7a8acd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -178,7 +178,7 @@ bool AndroidDeployQtStep::init()
|
||||
|
||||
RunConfiguration *rc = target()->activeRunConfiguration();
|
||||
QTC_ASSERT(rc, return false);
|
||||
ProjectExplorer::BuildConfiguration *bc = buildConfiguration();
|
||||
BuildConfiguration *bc = target()->activeBuildConfiguration();
|
||||
QTC_ASSERT(bc, return false);
|
||||
|
||||
auto androidBuildApkStep = bc->buildSteps()->firstOfType<AndroidBuildApkStep>();
|
||||
@@ -470,7 +470,7 @@ bool AndroidDeployQtStep::runImpl()
|
||||
void AndroidDeployQtStep::gatherFilesToPull()
|
||||
{
|
||||
m_filesToPull.clear();
|
||||
ProjectExplorer::BuildConfiguration *bc = buildConfiguration();
|
||||
BuildConfiguration *bc = target()->activeBuildConfiguration();
|
||||
QString buildDir = bc ? bc->buildDirectory().toString() : QString();
|
||||
if (bc && !buildDir.endsWith("/")) {
|
||||
buildDir += "/";
|
||||
|
Reference in New Issue
Block a user