Commit f65abb71 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

KitInformation: Simplify code a bit.



Change-Id: I0b77381be19b7a84dcef680145ffce5cf4711d9a
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent a6dba153
......@@ -429,8 +429,7 @@ KitInformation::ItemList DeviceKitInformation::toUserOutput(Kit *k) const
IDevice::ConstPtr DeviceKitInformation::device(const Kit *k)
{
QTC_ASSERT(DeviceManager::instance()->isLoaded(), return IDevice::ConstPtr());
DeviceManager *dm = DeviceManager::instance();
return dm ? dm->find(deviceId(k)) : IDevice::ConstPtr();
return DeviceManager::instance()->find(deviceId(k));
}
Core::Id DeviceKitInformation::deviceId(const Kit *k)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment