Skip to content

Commit

Permalink
use NULLPTR for header
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Oct 22, 2024
1 parent 661b069 commit ce408a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/record_batch.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ struct ARROW_EXPORT RecordBatchWithMetadata {

template <>
struct IterationTraits<RecordBatchWithMetadata> {
static RecordBatchWithMetadata End() { return {nullptr, nullptr}; }
static bool IsEnd(const RecordBatchWithMetadata& val) { return val.batch == nullptr; }
static RecordBatchWithMetadata End() { return {NULLPTR, NULLPTR}; }
static bool IsEnd(const RecordBatchWithMetadata& val) { return val.batch == NULLPTR; }
};

/// \brief Abstract interface for reading stream of record batches
Expand Down

0 comments on commit ce408a2

Please sign in to comment.