forked from qt-creator/qt-creator
ProjectExplorer: Use setter for IDevice::type
Second step towards streamlining the IDevice::ctor/create lines of functions. Change-Id: I8b0f2270a9f6545ff9419ef8cf44b456c2233223 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -79,11 +79,10 @@ namespace Ios {
|
||||
namespace Internal {
|
||||
|
||||
IosDevice::IosDevice()
|
||||
: IDevice(Core::Id(Constants::IOS_DEVICE_TYPE),
|
||||
IDevice::AutoDetected,
|
||||
Constants::IOS_DEVICE_ID),
|
||||
: IDevice(IDevice::AutoDetected, Constants::IOS_DEVICE_ID),
|
||||
m_lastPort(Constants::IOS_DEVICE_PORT_START)
|
||||
{
|
||||
setType(Constants::IOS_DEVICE_TYPE);
|
||||
setDisplayName(IosDevice::name());
|
||||
setMachineType(IDevice::Hardware);
|
||||
setDeviceState(DeviceDisconnected);
|
||||
@@ -96,11 +95,10 @@ IosDevice::IosDevice()
|
||||
IosDevice::IosDevice(const IosDevice &other) = default;
|
||||
|
||||
IosDevice::IosDevice(const QString &uid)
|
||||
: IDevice(Core::Id(Constants::IOS_DEVICE_TYPE),
|
||||
IDevice::AutoDetected,
|
||||
Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid)),
|
||||
: IDevice(IDevice::AutoDetected, Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid)),
|
||||
m_lastPort(Constants::IOS_DEVICE_PORT_START)
|
||||
{
|
||||
setType(Constants::IOS_DEVICE_TYPE);
|
||||
setDisplayName(IosDevice::name());
|
||||
setMachineType(IDevice::Hardware);
|
||||
setDeviceState(DeviceDisconnected);
|
||||
|
||||
Reference in New Issue
Block a user