mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibSQL: Replace Result<T, E> use with ErrorOr<T>
This commit is contained in:
parent
fbe8f185b5
commit
72f3fd824e
2 changed files with 3 additions and 4 deletions
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/Result.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibCore/File.h>
|
||||
|
@ -36,7 +35,7 @@ public:
|
|||
virtual ~Heap() override { flush(); }
|
||||
|
||||
u32 size() const { return m_end_of_file; }
|
||||
Result<ByteBuffer, String> read_block(u32);
|
||||
ErrorOr<ByteBuffer> read_block(u32);
|
||||
bool write_block(u32, ByteBuffer&);
|
||||
u32 new_record_pointer();
|
||||
[[nodiscard]] bool has_block(u32 block) const { return block < size(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue