aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-07-05 16:16:12 +0200
committerhjk <hjk@qt.io>2021-07-05 16:00:47 +0000
commit1e11f3eadef2ecefe3d487c5a026431d37fa96de (patch)
tree465de87d1113f808c80ecf6fa0cd91d60f6f1e16 /src/plugins/perfprofiler
parent2e9604c0920701ba32f058ceebb11d72292a1dff (diff)
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>
Diffstat (limited to 'src/plugins/perfprofiler')
-rw-r--r--src/plugins/perfprofiler/perftracepointdialog.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/perfprofiler/perftracepointdialog.cpp b/src/plugins/perfprofiler/perftracepointdialog.cpp
index c6ca317d913..771471b186f 100644
--- a/src/plugins/perfprofiler/perftracepointdialog.cpp
+++ b/src/plugins/perfprofiler/perftracepointdialog.cpp
@@ -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);
}