IosDeployStep: use QTC_ASSERT when appropriate

Change-Id: I487f3ead6b72d558670dd4045c44b8ab09336e29
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
hjk
2014-05-17 22:53:00 +02:00
parent 29e4ed9f56
commit 129d062a73

View File

@@ -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."),