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:
@@ -597,15 +597,18 @@ void MemcheckTool::setBusyCursor(bool busy)
|
||||
m_errorView->setCursor(cursor);
|
||||
}
|
||||
|
||||
void MemcheckTool::startTool(StartMode mode)
|
||||
void MemcheckTool::startLocalTool()
|
||||
{
|
||||
if (mode == StartLocal && checkForLocalStart(DebugMode)) {
|
||||
if (checkForLocalStart(DebugMode)) {
|
||||
Project *pro = SessionManager::startupProject();
|
||||
ProjectExplorerPlugin::instance()->runProject(pro, MemcheckRunMode);
|
||||
ProjectExplorerPlugin::runProject(pro, MemcheckRunMode);
|
||||
}
|
||||
}
|
||||
|
||||
void MemcheckTool::startRemoteTool()
|
||||
{
|
||||
AnalyzerStartParameters sp;
|
||||
if (mode == StartRemote && checkForRemoteStart(&sp)) {
|
||||
if (checkForRemoteStart(&sp)) {
|
||||
AnalyzerRunControl *rc = createRunControl(sp, 0);
|
||||
ProjectExplorerPlugin::startRunControl(rc, MemcheckRunMode);
|
||||
}
|
||||
@@ -617,15 +620,18 @@ MemcheckWithGdbTool::MemcheckWithGdbTool(QObject *parent) :
|
||||
setObjectName(QLatin1String("MemcheckWithGdbTool"));
|
||||
}
|
||||
|
||||
void MemcheckWithGdbTool::startTool(Analyzer::StartMode mode)
|
||||
void MemcheckWithGdbTool::startLocalTool()
|
||||
{
|
||||
if (mode == StartLocal && checkForLocalStart(DebugMode)) {
|
||||
if (checkForLocalStart(DebugMode)) {
|
||||
Project *pro = SessionManager::startupProject();
|
||||
ProjectExplorerPlugin::instance()->runProject(pro, MemcheckWithGdbRunMode);
|
||||
ProjectExplorerPlugin::runProject(pro, MemcheckWithGdbRunMode);
|
||||
}
|
||||
}
|
||||
|
||||
void MemcheckWithGdbTool::startRemoteTool()
|
||||
{
|
||||
AnalyzerStartParameters sp;
|
||||
if (mode == StartRemote && checkForRemoteStart(&sp)) {
|
||||
if (checkForRemoteStart(&sp)) {
|
||||
AnalyzerRunControl *rc = createRunControl(sp, 0);
|
||||
ProjectExplorerPlugin::startRunControl(rc, MemcheckWithGdbRunMode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user