forked from qt-creator/qt-creator
ProjectExplorer: Use the fromMap(toMap()) pattern to clone devices
Change-Id: Ie6e73f5ef1019907dd311aac116d71f08b5a5202 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -64,14 +64,6 @@ IosSimulator::IosSimulator()
|
||||
setDeviceState(DeviceReadyToUse);
|
||||
}
|
||||
|
||||
IosSimulator::IosSimulator(const IosSimulator &other)
|
||||
: IDevice(other), m_lastPort(other.m_lastPort)
|
||||
{
|
||||
setDisplayName(QCoreApplication::translate("Ios::Internal::IosSimulator", "iOS Simulator"));
|
||||
setDeviceState(DeviceReadyToUse);
|
||||
}
|
||||
|
||||
|
||||
IDevice::DeviceInfo IosSimulator::deviceInformation() const
|
||||
{
|
||||
return IDevice::DeviceInfo();
|
||||
@@ -92,11 +84,6 @@ DeviceProcessSignalOperation::Ptr IosSimulator::signalOperation() const
|
||||
return DeviceProcessSignalOperation::Ptr();
|
||||
}
|
||||
|
||||
IDevice::Ptr IosSimulator::clone() const
|
||||
{
|
||||
return IDevice::Ptr(new IosSimulator(*this));
|
||||
}
|
||||
|
||||
Utils::Port IosSimulator::nextPort() const
|
||||
{
|
||||
for (int i = 0; i < 100; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user