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:
@@ -727,7 +727,7 @@ MemcheckTool::MemcheckTool()
|
||||
void MemcheckTool::heobAction()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
StandardRunnable sr;
|
||||
Runnable sr;
|
||||
Abi abi;
|
||||
bool hasLocalRc = false;
|
||||
Kit *kit = nullptr;
|
||||
@@ -739,13 +739,11 @@ void MemcheckTool::heobAction()
|
||||
abi = ToolChainKitInformation::targetAbi(kit);
|
||||
|
||||
const Runnable runnable = rc->runnable();
|
||||
if (runnable.is<StandardRunnable>()) {
|
||||
sr = runnable.as<StandardRunnable>();
|
||||
const IDevice::ConstPtr device = sr.device;
|
||||
hasLocalRc = device && device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE;
|
||||
if (!hasLocalRc)
|
||||
hasLocalRc = DeviceTypeKitInformation::deviceTypeId(kit) == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE;
|
||||
}
|
||||
sr = runnable;
|
||||
const IDevice::ConstPtr device = sr.device;
|
||||
hasLocalRc = device && device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE;
|
||||
if (!hasLocalRc)
|
||||
hasLocalRc = DeviceTypeKitInformation::deviceTypeId(kit) == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user