aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ios/iosdevice.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2019-01-14 16:57:51 +0100
committerhjk <[email protected]>2019-01-15 13:02:28 +0000
commit3f3eb404171fe5cfcfbb63742896561ee956fe44 (patch)
tree5c4561ed629f5b6d71e554d260db1c5bbcbd1d56 /src/plugins/ios/iosdevice.cpp
parent5dbaf387ba231377c3c6c201b21f9f9cb1881526 (diff)
ProjectExplorer: Introduce a setter for IDevice origin and id
They are not completely orthogonal, so use one function for now. This is the step towards streamlining the IDevice::ctor/create lines of functions. Change-Id: I1fe9144c45c7da0c9dcbda3bf424e976e0519cd6 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/ios/iosdevice.cpp')
-rw-r--r--src/plugins/ios/iosdevice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/ios/iosdevice.cpp b/src/plugins/ios/iosdevice.cpp
index c7b3fa8d0fd..cb4a84f7cb7 100644
--- a/src/plugins/ios/iosdevice.cpp
+++ b/src/plugins/ios/iosdevice.cpp
@@ -79,9 +79,9 @@ namespace Ios {
namespace Internal {
IosDevice::IosDevice()
- : IDevice(IDevice::AutoDetected, Constants::IOS_DEVICE_ID),
- m_lastPort(Constants::IOS_DEVICE_PORT_START)
+ : m_lastPort(Constants::IOS_DEVICE_PORT_START)
{
+ setupId(IDevice::AutoDetected, Constants::IOS_DEVICE_ID);
setType(Constants::IOS_DEVICE_TYPE);
setDisplayName(IosDevice::name());
setMachineType(IDevice::Hardware);
@@ -95,9 +95,9 @@ IosDevice::IosDevice()
IosDevice::IosDevice(const IosDevice &other) = default;
IosDevice::IosDevice(const QString &uid)
- : IDevice(IDevice::AutoDetected, Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid)),
- m_lastPort(Constants::IOS_DEVICE_PORT_START)
+ : m_lastPort(Constants::IOS_DEVICE_PORT_START)
{
+ setupId(IDevice::AutoDetected, Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid));
setType(Constants::IOS_DEVICE_TYPE);
setDisplayName(IosDevice::name());
setMachineType(IDevice::Hardware);