1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:37:44 +00:00

AK: Add nodiscard attribute to BitStream functions

This commit is contained in:
Lenny Maiorani 2022-06-26 10:21:02 -06:00 committed by Brian Gianforcaro
parent 97d966d25c
commit ef4b98be52

View file

@ -48,7 +48,7 @@ public:
return true; 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 bool discard_or_error(size_t count) override
{ {
@ -226,7 +226,7 @@ public:
} }
} }
size_t bit_offset() const [[nodiscard]] size_t bit_offset() const
{ {
return m_bit_offset; return m_bit_offset;
} }