diff options
author | hjk <qtc-committer@nokia.com> | 2008-12-09 15:25:01 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2008-12-09 15:25:01 +0100 |
commit | 4a552ead9ff84e77e9bbdb107b97432777a648d8 (patch) | |
tree | 15d3aece30ba664df96ee1ad7a905bfdf781f621 /src/plugins/help/helpfindsupport.cpp | |
parent | e99d8ce3fc67925437a9bef344b66db39ca232aa (diff) | |
download | qt-creator-4a552ead9ff84e77e9bbdb107b97432777a648d8.tar.gz |
use QTC_ASSERT instead of Q_ASSERT
Diffstat (limited to 'src/plugins/help/helpfindsupport.cpp')
-rw-r--r-- | src/plugins/help/helpfindsupport.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/help/helpfindsupport.cpp b/src/plugins/help/helpfindsupport.cpp index 83ec2d1570..a26032ec2f 100644 --- a/src/plugins/help/helpfindsupport.cpp +++ b/src/plugins/help/helpfindsupport.cpp @@ -34,6 +34,8 @@ #include "helpfindsupport.h" #include "helpviewer.h" +#include <utils/qtcassert.h> + using namespace Help::Internal; HelpFindSupport::HelpFindSupport(CentralWidget *centralWidget) @@ -52,8 +54,8 @@ bool HelpFindSupport::isEnabled() const QString HelpFindSupport::currentFindString() const { - Q_ASSERT(m_centralWidget); - HelpViewer* viewer = m_centralWidget->currentHelpViewer(); + QTC_ASSERT(m_centralWidget, return QString()); + HelpViewer *viewer = m_centralWidget->currentHelpViewer(); if (!viewer) return QString(); #if !defined(QT_NO_WEBKIT) @@ -70,13 +72,13 @@ QString HelpFindSupport::completedFindString() const bool HelpFindSupport::findIncremental(const QString &txt, QTextDocument::FindFlags findFlags) { - Q_ASSERT(m_centralWidget); + QTC_ASSERT(m_centralWidget, return false); findFlags &= ~QTextDocument::FindBackward; return m_centralWidget->find(txt, findFlags, true); } bool HelpFindSupport::findStep(const QString &txt, QTextDocument::FindFlags findFlags) { - Q_ASSERT(m_centralWidget); + QTC_ASSERT(m_centralWidget, return false); return m_centralWidget->find(txt, findFlags, false); } |