Debugger: Remove DebuggerRunParameters::device member

The device is always available via runTool().

Change-Id: I4a2a791a5a75b32803c06fc34947b82b869fe31c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-05-23 13:54:52 +02:00
parent 461ffae871
commit 406ddaa36c
4 changed files with 7 additions and 8 deletions

View File

@@ -352,7 +352,6 @@ static bool fixupParameters(DebuggerRunParameters &rp, RunControl *runControl, Q
rp.cppEngineType = DebuggerKitInformation::engineType(kit);
if (rp.sysRoot.isEmpty())
rp.sysRoot = SysRootKitInformation::sysRoot(kit).toString();
rp.device = DeviceKitInformation::device(kit);
if (rp.displayName.isEmpty() && runConfig)
rp.displayName = runConfig->displayName();
@@ -406,8 +405,9 @@ static bool fixupParameters(DebuggerRunParameters &rp, RunControl *runControl, Q
}
}
IDevice::ConstPtr device = runControl->device();
if (rp.languages & QmlLanguage) {
if (rp.device && rp.device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
if (device && device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
if (rp.qmlServer.host.isEmpty() || !rp.qmlServer.port.isValid()) {
QTcpServer server;
const bool canListen = server.listen(QHostAddress::LocalHost)
@@ -468,8 +468,8 @@ static bool fixupParameters(DebuggerRunParameters &rp, RunControl *runControl, Q
if (rp.masterEngineType == NoEngineType)
rp.masterEngineType = rp.cppEngineType;
if (rp.device && rp.connParams.port == 0)
rp.connParams = rp.device->sshParameters();
if (device && rp.connParams.port == 0)
rp.connParams = device->sshParameters();
// Could have been set from command line.
if (rp.remoteChannel.isEmpty())