mirror of
https://github.com/RGBCube/serenity
synced 2025-07-03 05:32:13 +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
18 changed files with 121 additions and 100 deletions
|
@ -93,7 +93,7 @@ PerformanceEvent& PerformanceEventBuffer::at(size_t index)
|
|||
return events[index];
|
||||
}
|
||||
|
||||
KBuffer PerformanceEventBuffer::to_json(ProcessID pid, const String& executable_path) const
|
||||
OwnPtr<KBuffer> PerformanceEventBuffer::to_json(ProcessID pid, const String& executable_path) const
|
||||
{
|
||||
KBufferBuilder builder;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue