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;
|
Abi abi;
|
||||||
bool hasLocalRc = false;
|
bool hasLocalRc = false;
|
||||||
Kit *kit = nullptr;
|
Kit *kit = nullptr;
|
||||||
if (Project *project = SessionManager::startupProject()) {
|
if (Target *target = SessionManager::startupTarget()) {
|
||||||
if (Target *target = project->activeTarget()) {
|
|
||||||
if (RunConfiguration *rc = target->activeRunConfiguration()) {
|
if (RunConfiguration *rc = target->activeRunConfiguration()) {
|
||||||
kit = target->kit();
|
kit = target->kit();
|
||||||
if (kit) {
|
if (kit) {
|
||||||
@@ -725,7 +724,6 @@ void MemcheckToolPrivate::heobAction()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!hasLocalRc) {
|
if (!hasLocalRc) {
|
||||||
const QString msg = MemcheckTool::tr("Heob: No local run configuration available.");
|
const QString msg = MemcheckTool::tr("Heob: No local run configuration available.");
|
||||||
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
TaskHub::addTask(Task::Error, msg, Debugger::Constants::ANALYZERTASK_ID);
|
||||||
|
Reference in New Issue
Block a user