From 505d0768f8392e3c4775425dd97f41e1c829ef44 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 30 Apr 2016 18:23:42 +0100 Subject: Apply clang-tidy: modernize-use-nullptr --- src/modules/help/HelpIndex.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/help/HelpIndex.cpp') diff --git a/src/modules/help/HelpIndex.cpp b/src/modules/help/HelpIndex.cpp index 3fba3c74d..bd5d772be 100644 --- a/src/modules/help/HelpIndex.cpp +++ b/src/modules/help/HelpIndex.cpp @@ -77,7 +77,7 @@ QDataStream & operator<<(QDataStream & s, const Document & l) } HelpIndex::HelpIndex(const QString & dp, const QString & hp) - : QObject(0), docPath(dp) + : QObject(nullptr), docPath(dp) { Q_UNUSED(hp); @@ -93,7 +93,7 @@ HelpIndex::HelpIndex(const QString & dp, const QString & hp) } HelpIndex::HelpIndex(const QStringList & dl, const QString & hp) - : QObject(0) + : QObject(nullptr) { Q_UNUSED(hp); docList = dl; @@ -172,7 +172,7 @@ void HelpIndex::insertInDict(const QString & str, int docNum) { if(str == QLatin1String("amp") || str == QLatin1String("nbsp")) return; - Entry * e = 0; + Entry * e = nullptr; if(dict.count()) e = dict[str]; @@ -351,7 +351,7 @@ QStringList HelpIndex::query(const QStringList & terms, const QStringList & term QList termList; for(QStringList::ConstIterator it = terms.begin(); it != terms.end(); ++it) { - Entry * e = 0; + Entry * e = nullptr; if((*it).contains(QLatin1Char('*'))) { QVector wcts = setupDummyTerm(getWildcardTerms(*it)); @@ -533,7 +533,7 @@ QVector HelpIndex::setupDummyTerm(const QStringList & terms) QList termList; for(QStringList::ConstIterator it = terms.begin(); it != terms.end(); ++it) { - Entry * e = 0; + Entry * e = nullptr; if(dict[*it]) { e = dict[*it]; -- cgit v1.3.1-10-gc9f91