Some clang-tidy -use-modernize-nullptr

Change-Id: I1bed5e85a5b7948d08502a72a10f80baa075c204
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
hjk
2019-07-31 17:21:41 +02:00
parent 630385751a
commit 2e14df7561
180 changed files with 1312 additions and 1312 deletions

View File

@@ -240,7 +240,7 @@ QVariant DataModel::data(const QModelIndex &index, int role) const
}
}
ret += entry.arg(tr("Object:")).arg(func->object());
ret += entry.arg(tr("Called:")).arg(tr("%n time(s)", 0, func->called()));
ret += entry.arg(tr("Called:")).arg(tr("%n time(s)", nullptr, func->called()));
ret += "</dl><p/>";
// self/inclusive costs

View File

@@ -224,7 +224,7 @@ void Parser::Private::parse(QIODevice *device)
// functions that need to accumulate their calees
QSet<Function *> pendingFunctions;
foreach (const CallData &callData, pendingCallees) {
Function *calledFunction = 0;
Function *calledFunction = nullptr;
QTC_ASSERT(callData.call, continue);
QTC_ASSERT(callData.call->caller(), continue);
foreach (const Function *function, functionLookup.value(callData.calledFunction)) {