forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user