Commit 129d062a authored by hjk's avatar hjk

IosDeployStep: use QTC_ASSERT when appropriate

Change-Id: I487f3ead6b72d558670dd4045c44b8ab09336e29
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 29e4ed9f
...@@ -93,7 +93,7 @@ bool IosDeployStep::init() ...@@ -93,7 +93,7 @@ bool IosDeployStep::init()
m_device = ProjectExplorer::DeviceKitInformation::device(target()->kit()); m_device = ProjectExplorer::DeviceKitInformation::device(target()->kit());
IosRunConfiguration * runConfig = qobject_cast<IosRunConfiguration *>( IosRunConfiguration * runConfig = qobject_cast<IosRunConfiguration *>(
this->target()->activeRunConfiguration()); this->target()->activeRunConfiguration());
QTC_CHECK(runConfig); QTC_ASSERT(runConfig, return false);
m_bundlePath = runConfig->bundleDir().toString(); m_bundlePath = runConfig->bundleDir().toString();
if (m_device.isNull()) { if (m_device.isNull()) {
emit addOutput(tr("Error: no device available, deploy failed."), emit addOutput(tr("Error: no device available, deploy failed."),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment