Skip to content

Commit

Permalink
Add missing dtors for pimpl pattern
Browse files Browse the repository at this point in the history
Change-Id: I0c06793275de0bf96be5602e5c99ae9cf7ad2b14
  • Loading branch information
wesm committed May 13, 2017
1 parent a797ee3 commit d7b7c9c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/src/arrow/ipc/reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ RecordBatchStreamReader::RecordBatchStreamReader() {
impl_.reset(new RecordBatchStreamReaderImpl());
}

RecordBatchStreamReader::~RecordBatchStreamReader() {}

Status RecordBatchStreamReader::Open(const std::shared_ptr<io::InputStream>& stream,
std::shared_ptr<RecordBatchStreamReader>* reader) {
// Private ctor
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/arrow/ipc/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class ARROW_EXPORT RecordBatchReader {
/// \brief Synchronous batch stream reader that reads from io::InputStream
class ARROW_EXPORT RecordBatchStreamReader : public RecordBatchReader {
public:
virtual ~RecordBatchStreamReader();

/// Create batch reader from InputStream
///
/// \param(in) stream an input stream instance
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/arrow/ipc/writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ RecordBatchStreamWriter::RecordBatchStreamWriter() {
impl_.reset(new RecordBatchStreamWriterImpl());
}

RecordBatchStreamWriter::~RecordBatchStreamWriter() {}

Status RecordBatchStreamWriter::WriteRecordBatch(
const RecordBatch& batch, bool allow_64bit) {
return impl_->WriteRecordBatch(batch, allow_64bit);
Expand Down
2 changes: 2 additions & 0 deletions cpp/src/arrow/ipc/writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class ARROW_EXPORT RecordBatchWriter {
/// format
class ARROW_EXPORT RecordBatchStreamWriter : public RecordBatchWriter {
public:
virtual ~RecordBatchStreamWriter();

/// Create a new writer from stream sink and schema. User is responsible for
/// closing the actual OutputStream.
///
Expand Down

0 comments on commit d7b7c9c

Please sign in to comment.