forked from qt-creator/qt-creator
Some clang-tidy -use-modernize-nullptr
Change-Id: I1bed5e85a5b7948d08502a72a10f80baa075c204 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user