diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2018-11-24 12:14:44 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2018-12-02 14:27:29 +0000 |
commit | d1df55d128cd544c9b4035cad4b71aa521e93201 (patch) | |
tree | 6294d1402dfa8c70c65aed0d1ab08baa9d374451 /src/plugins/qmlprofiler/flamegraphview.cpp | |
parent | 383f0b9fcc6f2e6faad002d01560a81df0ca1813 (diff) |
QmlProfiler: Modernize
modernize-*
Change-Id: Ibdf9c0ae91bf8a622facc7f323112b550f532f15
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/flamegraphview.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/flamegraphview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/flamegraphview.cpp b/src/plugins/qmlprofiler/flamegraphview.cpp index 5c192d77f2d..23e60a32b64 100644 --- a/src/plugins/qmlprofiler/flamegraphview.cpp +++ b/src/plugins/qmlprofiler/flamegraphview.cpp @@ -85,13 +85,12 @@ void FlameGraphView::onVisibleFeaturesChanged(quint64 features) void FlameGraphView::contextMenuEvent(QContextMenuEvent *ev) { QMenu menu; - QAction *getGlobalStatsAction = nullptr; QPoint position = ev->globalPos(); menu.addActions(QmlProfilerTool::profilerContextMenuActions()); menu.addSeparator(); - getGlobalStatsAction = menu.addAction(tr("Show Full Range")); + QAction *getGlobalStatsAction = menu.addAction(tr("Show Full Range")); if (!m_model->modelManager()->isRestrictedToRange()) getGlobalStatsAction->setEnabled(false); |