Skip to content

Commit

Permalink
Fix warnings-as-errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-tsirpanis committed Dec 17, 2024
1 parent 41c8a10 commit 510f7ba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tiledb/sm/filter/filter_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ FilterBuffer::BufferOrView::BufferOrView(
tdb_new(Buffer, (char*)buffer->data() + offset, nbytes));
}

FilterBuffer::BufferOrView::BufferOrView(BufferOrView&& other) {
underlying_buffer_.swap(other.underlying_buffer_);
view_.swap(other.view_);
std::swap(is_view_, other.is_view_);
}
FilterBuffer::BufferOrView::BufferOrView(BufferOrView&& other) = default;

Buffer* FilterBuffer::BufferOrView::buffer() const {
return is_view_ ? view_.get() : underlying_buffer_.get();
Expand Down

0 comments on commit 510f7ba

Please sign in to comment.