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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user