forked from qt-creator/qt-creator
ProjectExplorer: Remove RunWorker::runnable()
A convienience function that leads to an interface that's "too stiff". Change-Id: Ide2e5fd991707d08690e7e384e9048a30e0828f4 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -91,7 +91,7 @@ void ValgrindToolRunner::start()
|
||||
|
||||
m_runner.setValgrindCommand(valgrind);
|
||||
m_runner.setDevice(device());
|
||||
m_runner.setDebuggee(runnable());
|
||||
m_runner.setDebuggee(runControl()->runnable());
|
||||
|
||||
if (auto aspect = runControl()->aspect<TerminalAspect>())
|
||||
m_runner.setUseTerminal(aspect->useTerminal);
|
||||
@@ -124,7 +124,7 @@ void ValgrindToolRunner::stop()
|
||||
|
||||
FilePath ValgrindToolRunner::executable() const
|
||||
{
|
||||
return runnable().command.executable();
|
||||
return runControl()->commandLine().executable();
|
||||
}
|
||||
|
||||
QStringList ValgrindToolRunner::genericToolArguments() const
|
||||
|
||||
Reference in New Issue
Block a user