mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
AK: Add nodiscard
attribute to BitStream functions
This commit is contained in:
parent
97d966d25c
commit
ef4b98be52
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue