diff --git a/tensorflow/core/platform/status.h b/tensorflow/core/platform/status.h index c3ce61d37bb..5ee93a179db 100644 --- a/tensorflow/core/platform/status.h +++ b/tensorflow/core/platform/status.h @@ -56,7 +56,7 @@ class Status { static Status OK() { return Status(); } /// Returns true iff the status indicates success. - bool ok() const { return (state_ == NULL); } + bool ok() const { return (state_ == nullptr); } tensorflow::error::Code code() const { return ok() ? tensorflow::error::OK : state_->code;