diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-06-26 10:21:02 -0600 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-07-04 05:53:56 +0000 |
commit | ef4b98be5272c2de64616a74932fed6f8bd362ab (patch) | |
tree | 93c27fcd97e7edf3c6d3e7320ab81906cee66f7b /AK/BitStream.h | |
parent | 97d966d25c28732841c6afa94960158fb2589e4b (diff) | |
download | serenity-ef4b98be5272c2de64616a74932fed6f8bd362ab.zip |
AK: Add `nodiscard` attribute to BitStream functions
Diffstat (limited to 'AK/BitStream.h')
-rw-r--r-- | AK/BitStream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/BitStream.h b/AK/BitStream.h index 97257c5136..a605bdfef5 100644 --- a/AK/BitStream.h +++ b/AK/BitStream.h @@ -48,7 +48,7 @@ public: 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 { @@ -226,7 +226,7 @@ public: } } - size_t bit_offset() const + [[nodiscard]] size_t bit_offset() const { return m_bit_offset; } |