diff options
author | Christian Kandeler <christian.kandeler@nokia.com> | 2012-04-25 09:54:31 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@nokia.com> | 2012-04-25 11:57:19 +0200 |
commit | 2994b88d903ee62011e00e85712136e2e212ade2 (patch) | |
tree | 55b53b0f072a0b00aa882a845d3e17af650da78c /src/plugins/remotelinux/typespecificdeviceconfigurationlistmodel.cpp | |
parent | df5dab63827dc01412e7ddbe44ef0bef83b695ca (diff) | |
download | qt-creator-2994b88d903ee62011e00e85712136e2e212ade2.tar.gz |
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>
Diffstat (limited to 'src/plugins/remotelinux/typespecificdeviceconfigurationlistmodel.cpp')
-rw-r--r-- | src/plugins/remotelinux/typespecificdeviceconfigurationlistmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/remotelinux/typespecificdeviceconfigurationlistmodel.cpp b/src/plugins/remotelinux/typespecificdeviceconfigurationlistmodel.cpp index ef55ab7ca6..a028c1a714 100644 --- a/src/plugins/remotelinux/typespecificdeviceconfigurationlistmodel.cpp +++ b/src/plugins/remotelinux/typespecificdeviceconfigurationlistmodel.cpp @@ -109,7 +109,7 @@ LinuxDeviceConfiguration::ConstPtr TypeSpecificDeviceConfigurationListModel::def return LinuxDeviceConfiguration::ConstPtr(); } -LinuxDeviceConfiguration::ConstPtr TypeSpecificDeviceConfigurationListModel::find(const Core::Id &id) const +LinuxDeviceConfiguration::ConstPtr TypeSpecificDeviceConfigurationListModel::find(Core::Id id) const { const IDevice::ConstPtr &devConf = DeviceManager::instance()->find(id); if (devConf && target()->supportsDevice(devConf)) @@ -117,7 +117,7 @@ LinuxDeviceConfiguration::ConstPtr TypeSpecificDeviceConfigurationListModel::fin return defaultDeviceConfig(); } -int TypeSpecificDeviceConfigurationListModel::indexForInternalId(const Core::Id &id) const +int TypeSpecificDeviceConfigurationListModel::indexForId(Core::Id id) const { const int count = rowCount(); for (int i = 0; i < count; ++i) { |