Valgrind: Keep tool names in the *ToolRunners only

Slightly less convoluted.

Change-Id: I07410b49db05ea862fb82f3bffc25a5d7fb5a104
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2017-06-29 15:38:43 +02:00
parent 8678117572
commit 95300f08e3
4 changed files with 2 additions and 16 deletions

View File

@@ -36,7 +36,6 @@
#include <utils/qtcassert.h>
using namespace Debugger;
using namespace ProjectExplorer;
using namespace Valgrind::Callgrind;
@@ -47,7 +46,6 @@ CallgrindToolRunner::CallgrindToolRunner(RunControl *runControl)
: ValgrindToolRunner(runControl)
{
setDisplayName("CallgrindToolRunner");
m_runner.setToolName("callgrind");
connect(&m_runner, &ValgrindRunner::finished,
this, &CallgrindToolRunner::slotFinished);
@@ -73,7 +71,7 @@ CallgrindToolRunner::CallgrindToolRunner(RunControl *runControl)
QStringList CallgrindToolRunner::toolArguments() const
{
QStringList arguments;
QStringList arguments = {"--tool=callgrind"};
QTC_ASSERT(m_settings, return arguments);