forked from qt-creator/qt-creator
QmlProfiler: Avoid some 0 as nullptr warnings
Change-Id: I4763a22c6624eaffbb583bf26bf74a3e282b042f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -51,7 +51,7 @@ QmlProfilerViewManager::QmlProfilerViewManager(QObject *parent,
|
||||
QTC_ASSERT(m_profilerModelManager, return);
|
||||
QTC_ASSERT(m_profilerState, return);
|
||||
|
||||
m_traceView = new QmlProfilerTraceView(0, this, m_profilerModelManager);
|
||||
m_traceView = new QmlProfilerTraceView(nullptr, this, m_profilerModelManager);
|
||||
connect(m_traceView, &QmlProfilerTraceView::gotoSourceLocation,
|
||||
this, &QmlProfilerViewManager::gotoSourceLocation);
|
||||
connect(m_traceView, &QmlProfilerTraceView::typeSelected,
|
||||
@@ -96,7 +96,7 @@ QmlProfilerViewManager::QmlProfilerViewManager(QObject *parent,
|
||||
}
|
||||
perspective->addOperation({m_statisticsView->objectName().toLatin1(), m_statisticsView,
|
||||
anchorDockId, Perspective::AddToTab});
|
||||
perspective->addOperation({anchorDockId, 0, {}, Perspective::Raise});
|
||||
perspective->addOperation({anchorDockId, nullptr, {}, Perspective::Raise});
|
||||
|
||||
Debugger::registerPerspective(Constants::QmlProfilerPerspectiveId, perspective);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user