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:
@@ -557,16 +557,19 @@ AnalyzerRunControl *CallgrindToolPrivate::createRunControl(const AnalyzerStartPa
|
||||
return rc;
|
||||
}
|
||||
|
||||
void CallgrindTool::startTool(StartMode mode)
|
||||
void CallgrindTool::startLocalTool()
|
||||
{
|
||||
if (mode == StartLocal && checkForLocalStart(ReleaseMode)) {
|
||||
if (checkForLocalStart(ReleaseMode)) {
|
||||
Project *pro = SessionManager::startupProject();
|
||||
ProjectExplorerPlugin::instance()->runProject(pro, CallgrindRunMode);
|
||||
ProjectExplorerPlugin::runProject(pro, CallgrindRunMode);
|
||||
d->setBusyCursor(true);
|
||||
}
|
||||
}
|
||||
|
||||
void CallgrindTool::startRemoteTool()
|
||||
{
|
||||
AnalyzerStartParameters sp;
|
||||
if (mode == StartRemote && checkForRemoteStart(&sp)) {
|
||||
if (checkForRemoteStart(&sp)) {
|
||||
AnalyzerRunControl *rc = createRunControl(sp, 0);
|
||||
ProjectExplorerPlugin::startRunControl(rc, CallgrindRunMode);
|
||||
d->setBusyCursor(true);
|
||||
|
||||
Reference in New Issue
Block a user