summaryrefslogtreecommitdiff
path: root/src/qdoc/main.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2018-10-04 13:01:36 +0200
committerPaul Wicking <paul.wicking@qt.io>2018-10-04 12:28:47 +0000
commit49311e9fdd4ba00943b2faf6837efa1cffc8000c (patch)
tree3f4fd1d1b29d402e3b83268c682f1edda226279a /src/qdoc/main.cpp
parent5babb7ba51b903f8627531fe33e5cb679442e3c8 (diff)
downloadqttools-49311e9fdd4ba00943b2faf6837efa1cffc8000c.tar.gz
QDoc: Change zero as null pointer constants to nullptr in main.cpp
Change-Id: Ic48cb25019e0617938ee2c4ef74ee89309f5f8f9 Reviewed-by: Ole-Morten Duesund <olemd@odinprosjekt.no> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'src/qdoc/main.cpp')
-rw-r--r--src/qdoc/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp
index d8798b7cd..123545374 100644
--- a/src/qdoc/main.cpp
+++ b/src/qdoc/main.cpp
@@ -86,7 +86,7 @@ static QHash<QString,QString> defaults;
typedef QPair<QString, QTranslator*> Translator;
static QList<Translator> translators;
#endif
-static ClangCodeParser* clangParser_ = 0;
+static ClangCodeParser* clangParser_ = nullptr;
/*!
Read some XML indexes containing definitions from other
@@ -310,7 +310,7 @@ static void processQdocconfFile(const QString &fileName)
}
}
if (!found) {
- QTranslator *translator = new QTranslator(0);
+ QTranslator *translator = new QTranslator(nullptr);
if (!translator->load(*fn)) {
config.lastLocation().error(QCoreApplication::translate("QDoc", "Cannot load translator '%1'").arg(*fn));
}
@@ -507,7 +507,7 @@ static void processQdocconfFile(const QString &fileName)
QSet<QString>::ConstIterator of = outputFormats.constBegin();
while (of != outputFormats.constEnd()) {
Generator* generator = Generator::generatorForFormat(*of);
- if (generator == 0)
+ if (generator == nullptr)
outputFormatsLocation.fatal(QCoreApplication::translate("QDoc",
"Unknown output format '%1'").arg(*of));
generator->initializeFormat(config);