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

@@ -61,7 +61,7 @@ Evaluate::Evaluate(const ScopeChain *scopeChain, ReferenceContext *referenceCont
_context(scopeChain->context()),
_referenceContext(referenceContext),
_scopeChain(scopeChain),
_result(0)
_result(nullptr)
{
}
@@ -95,7 +95,7 @@ const Value *Evaluate::value(AST::Node *ast)
const Value *Evaluate::reference(AST::Node *ast)
{
// save the result
const Value *previousResult = switchResult(0);
const Value *previousResult = switchResult(nullptr);
// process the expression
accept(ast);
@@ -426,8 +426,8 @@ bool Evaluate::visit(AST::NotExpression *)
bool Evaluate::visit(AST::BinaryExpression *ast)
{
const Value *lhs = 0;
const Value *rhs = 0;
const Value *lhs = nullptr;
const Value *rhs = nullptr;
switch (ast->op) {
case QSOperator::Add:
case QSOperator::InplaceAdd: