mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Kernel: Add KBuffer::bytes() and use it
(Instead of hand-wrapping { data(), size() } in a bunch of places.)
This commit is contained in:
parent
bee2de4b31
commit
524ef5e475
Notes:
sideshowbarker
2024-07-18 04:25:47 +09:00
Author: https://github.com/awesomekling
Commit: 524ef5e475
7 changed files with 9 additions and 7 deletions
|
@ -48,7 +48,7 @@ public:
|
|||
{
|
||||
if (!m_buffer)
|
||||
return {};
|
||||
return ReadonlyBytes { m_buffer->data(), m_buffer->size() };
|
||||
return m_buffer->bytes();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue