mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 12:49:05 +00:00
LibVideo: Migrate to east-const style & apply other minor fixes
This patch brings all of LibVideo up to the east-const style in the project. Additionally, it applies a few fixes from the reviews in #8170 that referred to older LibVideo code.
This commit is contained in:
parent
7d4053dde1
commit
988e17ed05
Notes:
sideshowbarker
2024-07-18 11:14:10 +09:00
Author: https://github.com/FalseHonesty
Commit: 988e17ed05
Pull-request: https://github.com/SerenityOS/serenity/pull/8170
Reviewed-by: https://github.com/Lubrsi
Reviewed-by: https://github.com/MaxWipfli
12 changed files with 48 additions and 50 deletions
|
@ -13,7 +13,7 @@ namespace Video::VP9 {
|
|||
|
||||
class BitStream {
|
||||
public:
|
||||
BitStream(const u8* data, size_t size)
|
||||
BitStream(u8 const* data, size_t size)
|
||||
: m_data_ptr(data)
|
||||
, m_bytes_remaining(size)
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ public:
|
|||
bool exit_bool();
|
||||
|
||||
private:
|
||||
const u8* m_data_ptr { nullptr };
|
||||
u8 const* m_data_ptr { nullptr };
|
||||
size_t m_bytes_remaining { 0 };
|
||||
Optional<u8> m_current_byte;
|
||||
i8 m_current_bit_position { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue