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:
Christian Kandeler
2012-04-25 09:54:31 +02:00
parent df5dab6382
commit 2994b88d90
13 changed files with 26 additions and 27 deletions

View File

@@ -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);
}