aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/help/HelpIndex.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-04-30 18:23:42 +0100
committerGravatar Alexey Sokolov2016-04-30 18:50:44 +0100
commit505d0768f8392e3c4775425dd97f41e1c829ef44 (patch)
tree55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/help/HelpIndex.cpp
parentUpdate my clang-format to 3.8.0 (diff)
downloadKVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2
KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/help/HelpIndex.cpp')
-rw-r--r--src/modules/help/HelpIndex.cpp10
1 files changed, 5 insertions, 5 deletions
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<Term> termList;
for(QStringList::ConstIterator it = terms.begin(); it != terms.end(); ++it)
{
- Entry * e = 0;
+ Entry * e = nullptr;
if((*it).contains(QLatin1Char('*')))
{
QVector<Document> wcts = setupDummyTerm(getWildcardTerms(*it));
@@ -533,7 +533,7 @@ QVector<Document> HelpIndex::setupDummyTerm(const QStringList & terms)
QList<Term> termList;
for(QStringList::ConstIterator it = terms.begin(); it != terms.end(); ++it)
{
- Entry * e = 0;
+ Entry * e = nullptr;
if(dict[*it])
{
e = dict[*it];