mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
AK: Move Stream and SeekableStream from LibCore
`Stream` will be qualified as `AK::Stream` until we remove the `Core::Stream` namespace. `IODevice` now reuses the `SeekMode` that is defined by `SeekableStream`, since defining its own would require us to qualify it with `AK::SeekMode` everywhere.
This commit is contained in:
committed by
Andrew Kaster
parent
5f2ea31816
commit
8464da1439
@@ -142,9 +142,9 @@ ErrorOr<void> Heap::seek_block(u32 block)
|
||||
}
|
||||
|
||||
if (block == m_end_of_file)
|
||||
TRY(m_file->seek(0, Core::Stream::SeekMode::FromEndPosition));
|
||||
TRY(m_file->seek(0, SeekMode::FromEndPosition));
|
||||
else
|
||||
TRY(m_file->seek(block * BLOCKSIZE, Core::Stream::SeekMode::SetPosition));
|
||||
TRY(m_file->seek(block * BLOCKSIZE, SeekMode::SetPosition));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user