forked from qt-creator/qt-creator
Valgrind: Minor code simplification
Change-Id: I64b218d76f4c65686a346bf884ceb8323b62f9f1 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -709,8 +709,7 @@ void MemcheckToolPrivate::heobAction()
|
||||
Abi abi;
|
||||
bool hasLocalRc = false;
|
||||
Kit *kit = nullptr;
|
||||
if (Project *project = SessionManager::startupProject()) {
|
||||
if (Target *target = project->activeTarget()) {
|
||||
if (Target *target = SessionManager::startupTarget()) {
|
||||
if (RunConfiguration *rc = target->activeRunConfiguration()) {
|
||||
kit = target->kit();
|
||||
if (kit) {
|
||||
@@ -725,7 +724,6 @@ void MemcheckToolPrivate::heobAction()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!hasLocalRc) {
|
||||
const QString msg = MemcheckTool::tr("Heob: No local run configuration available.");
|
||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||
|
Reference in New Issue
Block a user