forked from qt-creator/qt-creator
RemoteLinux: Use a structure to return check results
Instead of the combined bool value + QString * out parameter. Change-Id: I8840f48b74aaacd1b0c0412efd8abcdc2be12d58 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -69,11 +69,12 @@ QVariantMap AbstractRemoteLinuxDeployStep::toMap() const
|
||||
|
||||
bool AbstractRemoteLinuxDeployStep::init()
|
||||
{
|
||||
QString error;
|
||||
deployService()->setTarget(target());
|
||||
const bool canDeploy = initInternal(&error);
|
||||
if (!canDeploy)
|
||||
emit addOutput(tr("Cannot deploy: %1").arg(error), OutputFormat::ErrorMessage);
|
||||
const CheckResult canDeploy = initInternal();
|
||||
if (!canDeploy) {
|
||||
emit addOutput(tr("Cannot deploy: %1").arg(canDeploy.errorMessage()),
|
||||
OutputFormat::ErrorMessage);
|
||||
}
|
||||
return canDeploy;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user