diff options
Diffstat (limited to 'include/clang/AST/StmtObjC.h')
-rw-r--r-- | include/clang/AST/StmtObjC.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/AST/StmtObjC.h b/include/clang/AST/StmtObjC.h index bfb4a9b0bb7a..d0527e2d8b61 100644 --- a/include/clang/AST/StmtObjC.h +++ b/include/clang/AST/StmtObjC.h @@ -107,7 +107,7 @@ public: SourceLocation getLocStart() const LLVM_READONLY { return AtCatchLoc; } SourceLocation getLocEnd() const LLVM_READONLY { return Body->getLocEnd(); } - bool hasEllipsis() const { return getCatchParamDecl() == 0; } + bool hasEllipsis() const { return getCatchParamDecl() == nullptr; } static bool classof(const Stmt *T) { return T->getStmtClass() == ObjCAtCatchStmtClass; @@ -222,13 +222,13 @@ public: /// \brief Retrieve the \@finally statement, if any. const ObjCAtFinallyStmt *getFinallyStmt() const { if (!HasFinally) - return 0; + return nullptr; return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]); } ObjCAtFinallyStmt *getFinallyStmt() { if (!HasFinally) - return 0; + return nullptr; return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]); } |