summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/qhelpcollectionhandler.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2018-05-11 15:48:26 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2018-05-14 09:10:20 +0000
commit66e78113f179f878b134fb1a8a26ac6e789755ab (patch)
tree621073715d785c6080f0398308a003c6033d5ab2 /src/assistant/help/qhelpcollectionhandler.cpp
parentacfd5a0be6ec26664a4e90e42edefcf5740f997d (diff)
Assistant: Fix clang warnings
Change-Id: I8315c97fcd20ea9be90f4258628b88c809dc7fdb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/assistant/help/qhelpcollectionhandler.cpp')
-rw-r--r--src/assistant/help/qhelpcollectionhandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/assistant/help/qhelpcollectionhandler.cpp b/src/assistant/help/qhelpcollectionhandler.cpp
index 162c79ea9..77e15f560 100644
--- a/src/assistant/help/qhelpcollectionhandler.cpp
+++ b/src/assistant/help/qhelpcollectionhandler.cpp
@@ -331,7 +331,7 @@ bool QHelpCollectionHandler::copyCollectionFile(const QString &fileName)
const QString &colFile = fi.absoluteFilePath();
const QString &connectionName = QHelpGlobal::uniquifyConnectionName(
QLatin1String("QHelpCollectionHandlerCopy"), this);
- QSqlQuery *copyQuery = 0;
+ QSqlQuery *copyQuery = nullptr;
bool openingOk = true;
{
QSqlDatabase db = QSqlDatabase::addDatabase(QLatin1String("QSQLITE"), connectionName);
@@ -651,7 +651,7 @@ bool QHelpCollectionHandler::registerDocumentation(const QString &fileName)
return false;
QHelpDBReader reader(fileName, QHelpGlobal::uniquifyConnectionName(
- QLatin1String("QHelpCollectionHandler"), this), 0);
+ QLatin1String("QHelpCollectionHandler"), this), nullptr);
if (!reader.init()) {
emit error(tr("Cannot open documentation file %1.").arg(fileName));
return false;