mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-16 17:00:35 +03: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: https://github.com/SerenityOS/serenity/commit/ef4b98be52 Pull-request: https://github.com/SerenityOS/serenity/pull/14395 Reviewed-by: https://github.com/linusg
@ -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…
Reference in New Issue
Block a user