forked from qt-creator/qt-creator
Finish merging Runnable and StandardRunnable
As all Runnables are known to be StandardRunnables, this here essentially replaces all .is<StandardRunnable> by 'true'. .as<StandardRunnable> by no-op, and fixes the fallout. Change-Id: I1632f8e164fa0a9dff063df47a9e191fdf7bbb2e Reviewed-by: Tobias Hunger <tobias.hunger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -83,8 +83,7 @@ void ValgrindToolRunner::start()
|
||||
m_runner.setValgrindExecutable(m_settings->valgrindExecutable());
|
||||
m_runner.setValgrindArguments(genericToolArguments() + toolArguments());
|
||||
m_runner.setDevice(device());
|
||||
QTC_ASSERT(runnable().is<StandardRunnable>(), reportFailure());
|
||||
m_runner.setDebuggee(runnable().as<StandardRunnable>());
|
||||
m_runner.setDebuggee(runnable());
|
||||
|
||||
connect(&m_runner, &ValgrindRunner::processOutputReceived,
|
||||
this, &ValgrindToolRunner::receiveProcessOutput);
|
||||
@@ -114,8 +113,7 @@ void ValgrindToolRunner::stop()
|
||||
|
||||
QString ValgrindToolRunner::executable() const
|
||||
{
|
||||
QTC_ASSERT(runnable().is<StandardRunnable>(), return QString());
|
||||
return runnable().as<StandardRunnable>().executable;
|
||||
return runnable().executable;
|
||||
}
|
||||
|
||||
QStringList ValgrindToolRunner::genericToolArguments() const
|
||||
|
||||
Reference in New Issue
Block a user