forked from qt-creator/qt-creator
Device support: Use value semantics for Core::Id.
We had a mixed style until now (mostly using const refs). Use value semantics everywhere for consistency and hope that the class never gets heavier. Change-Id: Ic9536f87b01a76252bd8643c8681b3dc9067a266 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -183,9 +183,9 @@ void RemoteLinuxDeployConfigurationWidget::handleDeviceConfigurationListChanged(
|
||||
{
|
||||
const LinuxDeviceConfiguration::ConstPtr &devConf
|
||||
= d->deployConfiguration->deviceConfiguration();
|
||||
const Core::Id &internalId = DeviceManager::instance()->deviceId(devConf);
|
||||
const Core::Id id = DeviceManager::instance()->deviceId(devConf);
|
||||
const int newIndex
|
||||
= d->deployConfiguration->target()->deviceConfigModel()->indexForInternalId(internalId);
|
||||
= d->deployConfiguration->target()->deviceConfigModel()->indexForId(id);
|
||||
d->ui.deviceConfigsComboBox->setCurrentIndex(newIndex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user