forked from qt-creator/qt-creator
Analyzer: no need to pass a start mode when it's implicit in the name.
startRemoteTool and startLocalTool are implcicitely working remotely and localy, they don't need a mode. Change-Id: I433ca421f68a1026979489c7f9d86b12251ec830 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
hjk
parent
29eff52529
commit
1571b7f977
@@ -165,7 +165,7 @@ RunConfigWidget *ValgrindRunControlFactory::createConfigurationWidget(RunConfigu
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static void startRemoteTool(IAnalyzerTool *tool, StartMode mode)
|
||||
static void startRemoteTool(IAnalyzerTool *tool)
|
||||
{
|
||||
Q_UNUSED(tool);
|
||||
StartRemoteDialog dlg;
|
||||
@@ -174,7 +174,7 @@ static void startRemoteTool(IAnalyzerTool *tool, StartMode mode)
|
||||
|
||||
AnalyzerStartParameters sp;
|
||||
sp.toolId = tool->id();
|
||||
sp.startMode = mode;
|
||||
sp.startMode = StartRemote;
|
||||
sp.connParams = dlg.sshParams();
|
||||
sp.debuggee = dlg.executable();
|
||||
sp.debuggeeArgs = dlg.arguments();
|
||||
@@ -191,9 +191,9 @@ static void startRemoteTool(IAnalyzerTool *tool, StartMode mode)
|
||||
void ValgrindPlugin::startValgrindTool(IAnalyzerTool *tool, StartMode mode)
|
||||
{
|
||||
if (mode == StartLocal)
|
||||
AnalyzerManager::startLocalTool(tool, mode);
|
||||
AnalyzerManager::startLocalTool(tool);
|
||||
if (mode == StartRemote)
|
||||
startRemoteTool(tool, mode);
|
||||
startRemoteTool(tool);
|
||||
}
|
||||
|
||||
static AbstractAnalyzerSubConfig *globalValgrindFactory()
|
||||
|
||||
Reference in New Issue
Block a user