diff options
Diffstat (limited to 'src/plugins/coreplugin/find/currentdocumentfind.cpp')
-rw-r--r-- | src/plugins/coreplugin/find/currentdocumentfind.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/coreplugin/find/currentdocumentfind.cpp b/src/plugins/coreplugin/find/currentdocumentfind.cpp index eca3527bac9..834b651ce7e 100644 --- a/src/plugins/coreplugin/find/currentdocumentfind.cpp +++ b/src/plugins/coreplugin/find/currentdocumentfind.cpp @@ -40,7 +40,7 @@ using namespace Core; using namespace Core::Internal; CurrentDocumentFind::CurrentDocumentFind() - : m_currentFind(0) + : m_currentFind(nullptr) { connect(qApp, &QApplication::focusChanged, this, &CurrentDocumentFind::updateCandidateFindFilter); @@ -48,7 +48,7 @@ CurrentDocumentFind::CurrentDocumentFind() void CurrentDocumentFind::removeConnections() { - disconnect(qApp, 0, this, 0); + disconnect(qApp, nullptr, this, nullptr); removeFindSupportConnections(); } @@ -82,7 +82,7 @@ bool CurrentDocumentFind::supportsReplace() const FindFlags CurrentDocumentFind::supportedFindFlags() const { - QTC_ASSERT(m_currentFind, return 0); + QTC_ASSERT(m_currentFind, return nullptr); return m_currentFind->supportedFindFlags(); } @@ -134,7 +134,7 @@ int CurrentDocumentFind::replaceAll(const QString &before, const QString &after, QTC_CHECK(m_currentWidget); int count = m_currentFind->replaceAll(before, after, findFlags); Utils::FadingIndicator::showText(m_currentWidget, - tr("%n occurrences replaced.", 0, count), + tr("%n occurrences replaced.", nullptr, count), Utils::FadingIndicator::SmallText); return count; } @@ -155,7 +155,7 @@ void CurrentDocumentFind::updateCandidateFindFilter(QWidget *old, QWidget *now) { Q_UNUSED(old) QWidget *candidate = now; - QPointer<IFindSupport> impl = 0; + QPointer<IFindSupport> impl = nullptr; while (!impl && candidate) { impl = Aggregation::query<IFindSupport>(candidate); if (!impl) @@ -215,8 +215,8 @@ void CurrentDocumentFind::removeFindSupportConnections() void CurrentDocumentFind::clearFindSupport() { removeFindSupportConnections(); - m_currentWidget = 0; - m_currentFind = 0; + m_currentWidget = nullptr; + m_currentFind = nullptr; emit changed(); } |