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:
@@ -37,7 +37,7 @@ public:
|
||||
~Semantic() override;
|
||||
|
||||
struct ExprResult {
|
||||
ExprResult(const Type *type = 0, bool isConstant = false)
|
||||
ExprResult(const Type *type = nullptr, bool isConstant = false)
|
||||
: type(type), isConstant(isConstant) {}
|
||||
|
||||
~ExprResult() { }
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
bool isValid() const {
|
||||
if (! type)
|
||||
return false;
|
||||
else if (type->asUndefinedType() != 0)
|
||||
else if (type->asUndefinedType() != nullptr)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user