ProjectExplorer: Use setter for IDevice::machineType

First step towards streamlining the IDevice::ctor/create lines
of functions.

Change-Id: I44226f8a05902cadd40c8820ab67752070d186c0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-01-14 15:27:52 +01:00
parent ae0d895d96
commit 75bce4332d
19 changed files with 51 additions and 46 deletions

View File

@@ -82,8 +82,8 @@ QnxDevice::QnxDevice()
init();
}
QnxDevice::QnxDevice(const QString &name, Core::Id type, MachineType machineType, Origin origin, Core::Id id)
: RemoteLinux::LinuxDevice(name, type, machineType, origin, id)
QnxDevice::QnxDevice(const QString &name, Core::Id type, Origin origin, Core::Id id)
: RemoteLinux::LinuxDevice(name, type, origin, id)
{
init();
}
@@ -103,9 +103,9 @@ QnxDevice::Ptr QnxDevice::create()
return Ptr(new QnxDevice);
}
QnxDevice::Ptr QnxDevice::create(const QString &name, Core::Id type, MachineType machineType, Origin origin, Core::Id id)
QnxDevice::Ptr QnxDevice::create(const QString &name, Core::Id type, Origin origin, Core::Id id)
{
return Ptr(new QnxDevice(name, type, machineType, origin, id));
return Ptr(new QnxDevice(name, type, origin, id));
}
QString QnxDevice::displayType() const