mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
AK: Add nodiscard
attribute to BitStream functions
This commit is contained in:
parent
97d966d25c
commit
ef4b98be52
Notes:
sideshowbarker
2024-07-17 09:45:16 +09:00
Author: https://github.com/ldm5180
Commit: ef4b98be52
Pull-request: https://github.com/SerenityOS/serenity/pull/14395
Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue