diff options
author | hjk <qthjk@ovi.com> | 2012-08-03 15:24:33 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-08-06 10:37:43 +0200 |
commit | 83e573f2ece5902454b19aab8ecac4f4ca4b91e5 (patch) | |
tree | da1520aa62a5eb87d9c9e770a5ef974d77be3a7b /src/plugins/remotelinux/genericlinuxdeviceconfigurationfactory.cpp | |
parent | 7ca93f9b1e728b99a0a4d554733a1fa31e6ab4d9 (diff) | |
download | qt-creator-83e573f2ece5902454b19aab8ecac4f4ca4b91e5.tar.gz |
use new id comparison operators to reduce line noise and save cycles
Change-Id: I2e7d81a4efb75877901d29964df4f71314e951b4
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/remotelinux/genericlinuxdeviceconfigurationfactory.cpp')
-rw-r--r-- | src/plugins/remotelinux/genericlinuxdeviceconfigurationfactory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/remotelinux/genericlinuxdeviceconfigurationfactory.cpp b/src/plugins/remotelinux/genericlinuxdeviceconfigurationfactory.cpp index c84ec28e10..1980e89b13 100644 --- a/src/plugins/remotelinux/genericlinuxdeviceconfigurationfactory.cpp +++ b/src/plugins/remotelinux/genericlinuxdeviceconfigurationfactory.cpp @@ -46,7 +46,7 @@ GenericLinuxDeviceConfigurationFactory::GenericLinuxDeviceConfigurationFactory(Q QString GenericLinuxDeviceConfigurationFactory::displayNameForId(Core::Id type) const { - QTC_ASSERT(type == Core::Id(Constants::GenericLinuxOsType), return QString()); + QTC_ASSERT(type == Constants::GenericLinuxOsType, return QString()); return tr("Generic Linux Device"); } @@ -57,7 +57,7 @@ QList<Core::Id> GenericLinuxDeviceConfigurationFactory::availableCreationIds() c IDevice::Ptr GenericLinuxDeviceConfigurationFactory::create(Core::Id id) const { - QTC_ASSERT(id == Core::Id(Constants::GenericLinuxOsType), return IDevice::Ptr()); + QTC_ASSERT(id == Constants::GenericLinuxOsType, return IDevice::Ptr()); GenericLinuxDeviceConfigurationWizard wizard; if (wizard.exec() != QDialog::Accepted) return IDevice::Ptr(); @@ -66,7 +66,7 @@ IDevice::Ptr GenericLinuxDeviceConfigurationFactory::create(Core::Id id) const bool GenericLinuxDeviceConfigurationFactory::canRestore(const QVariantMap &map) const { - return IDevice::typeFromMap(map) == Core::Id(Constants::GenericLinuxOsType); + return IDevice::typeFromMap(map) == Constants::GenericLinuxOsType; } IDevice::Ptr GenericLinuxDeviceConfigurationFactory::restore(const QVariantMap &map) const |