mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Kernel: Move KBufferBuilder to the fallible KBuffer API
KBufferBuilder::build() now returns an OwnPtr<KBuffer> and can fail. Clients of the API have been updated to handle that situation.
This commit is contained in:
parent
d936d86332
commit
8e79bde2b7
Notes:
sideshowbarker
2024-07-19 00:45:11 +09:00
Author: https://github.com/awesomekling
Commit: 8e79bde2b7
18 changed files with 121 additions and 100 deletions
|
@ -928,7 +928,7 @@ KResult Ext2FSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntr
|
|||
if (buffer_or.is_error())
|
||||
return buffer_or.error();
|
||||
|
||||
auto buffer = buffer_or.value();
|
||||
auto& buffer = *buffer_or.value();
|
||||
auto* entry = reinterpret_cast<ext2_dir_entry_2*>(buffer.data());
|
||||
|
||||
while (entry < buffer.end_pointer()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue