diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-04-19 10:47:13 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-04-19 12:07:59 +0000 |
commit | da18fc1f50e07d4bec6f32c0ccf5f08ea10fb634 (patch) | |
tree | b0c8d37fcfa736b591ebe95d046ce66b35e9a486 /src/plugins/help/searchwidget.cpp | |
parent | 0e81d01b2a1d02fe1a4313716be232cf9f918f05 (diff) |
Help: Use nullptr and fix a few warnings
Change-Id: I7f7307a765d8755bf96b0cad1210e61df0a0199f
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/help/searchwidget.cpp')
-rw-r--r-- | src/plugins/help/searchwidget.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/help/searchwidget.cpp b/src/plugins/help/searchwidget.cpp index c3bcd1c314d..a605e0958a0 100644 --- a/src/plugins/help/searchwidget.cpp +++ b/src/plugins/help/searchwidget.cpp @@ -56,10 +56,6 @@ using namespace Help::Internal; SearchWidget::SearchWidget() - : zoomCount(0) - , m_progress(0) - , searchEngine(0) - , resultWidget(0) { } @@ -226,7 +222,7 @@ void SearchWidget::indexingFinished() m_progress->reportFinished(); delete m_progress; - m_progress = NULL; + m_progress = nullptr; m_queryWidget->show(); m_indexingDocumentationLabel->hide(); @@ -261,9 +257,9 @@ void SearchWidget::contextMenuEvent(QContextMenuEvent *contextMenuEvent) if (!browser->rect().contains(point, true)) return; - QAction *openLink = 0; - QAction *openLinkInNewTab = 0; - QAction *copyAnchorAction = 0; + QAction *openLink = nullptr; + QAction *openLinkInNewTab = nullptr; + QAction *copyAnchorAction = nullptr; QMenu menu; QUrl link = browser->anchorAt(point); |