Skip to content

Commit

Permalink
AK: Add nodiscard attribute to BitStream functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm5180 authored and bgianfo committed Jul 4, 2022
1 parent 97d966d commit ef4b98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AK/BitStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class InputBitStream final : public InputStream {
return true;
}

bool unreliable_eof() const override { return !m_next_byte.has_value() && m_stream.unreliable_eof(); }
[[nodiscard]] bool unreliable_eof() const override { return !m_next_byte.has_value() && m_stream.unreliable_eof(); }

bool discard_or_error(size_t count) override
{
Expand Down Expand Up @@ -226,7 +226,7 @@ class OutputBitStream final : public OutputStream {
}
}

size_t bit_offset() const
[[nodiscard]] size_t bit_offset() const
{
return m_bit_offset;
}
Expand Down

0 comments on commit ef4b98b

Please sign in to comment.