ProjectExplorer: Introduce DeviceManager::defaultDesktopDevice()

Just syntactic sugar to make doing the right thing less painful.

Change-Id: Ia51cda20e5395925215f226b9a379af66fddfd8b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-07-05 16:16:12 +02:00
parent 2e9604c092
commit 1e11f3eade
5 changed files with 10 additions and 6 deletions

View File

@@ -63,10 +63,8 @@ PerfTracePointDialog::PerfTracePointDialog() :
}
if (!m_device) {
const DeviceManager *deviceManager = DeviceManager::instance();
// There should at least be a desktop device.
m_device = deviceManager->defaultDevice(Constants::DESKTOP_DEVICE_TYPE);
m_device = DeviceManager::defaultDesktopDevice();
QTC_ASSERT(m_device, return);
}