forked from qt-creator/qt-creator
Analyzer: Reduce explicit use of StartMode enum
Change-Id: I27b1d06395dea940c8dd39cd2bd41fc09cee3a9c Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -421,7 +421,7 @@ bool AnalyzerManagerPrivate::showPromptDialog(const QString &title, const QStrin
|
||||
void AnalyzerManagerPrivate::startTool()
|
||||
{
|
||||
QTC_ASSERT(m_currentAction, return);
|
||||
m_currentAction->toolStarter()(m_currentAction->startMode());
|
||||
m_currentAction->toolStarter()();
|
||||
}
|
||||
|
||||
void AnalyzerManagerPrivate::modeChanged(IMode *mode)
|
||||
@@ -687,8 +687,8 @@ AnalyzerRunControl *AnalyzerManager::createRunControl(
|
||||
const AnalyzerStartParameters &sp, RunConfiguration *runConfiguration)
|
||||
{
|
||||
foreach (AnalyzerAction *action, d->m_actions) {
|
||||
if (action->runMode() == sp.runMode && action->startMode() == sp.startMode)
|
||||
return action->createRunControl(sp, runConfiguration);
|
||||
if (AnalyzerRunControl *rc = action->tryCreateRunControl(sp, runConfiguration))
|
||||
return rc;
|
||||
}
|
||||
QTC_CHECK(false);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user