forked from qt-creator/qt-creator
IosDeployStep: use QTC_ASSERT when appropriate
Change-Id: I487f3ead6b72d558670dd4045c44b8ab09336e29 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -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."),
|
||||||
|
Reference in New Issue
Block a user