mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Kernel: Make KBuffer::try_create_with_bytes() return KResultOr
This commit is contained in:
parent
899cee8185
commit
250b52d6e5
Notes:
sideshowbarker
2024-07-18 04:31:21 +09:00
Author: https://github.com/awesomekling
Commit: 250b52d6e5
8 changed files with 16 additions and 24 deletions
|
@ -41,7 +41,7 @@ public:
|
|||
virtual ~PCIDeviceAttributeSysFSComponent() {};
|
||||
|
||||
protected:
|
||||
virtual OwnPtr<KBuffer> try_to_generate_buffer() const;
|
||||
KResultOr<NonnullOwnPtr<KBuffer>> try_to_generate_buffer() const;
|
||||
PCIDeviceAttributeSysFSComponent(String name, const PCIDeviceSysFSDirectory& device, size_t offset, size_t field_bytes_width);
|
||||
NonnullRefPtr<PCIDeviceSysFSDirectory> m_device;
|
||||
size_t m_offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue