mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +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:
parent
5f2ea31816
commit
8464da1439
96 changed files with 620 additions and 586 deletions
|
@ -176,7 +176,7 @@ ErrorOr<void> ConfigFile::sync()
|
|||
return Error::from_errno(ENOENT);
|
||||
|
||||
TRY(m_file->truncate(0));
|
||||
TRY(m_file->seek(0, Stream::SeekMode::SetPosition));
|
||||
TRY(m_file->seek(0, SeekMode::SetPosition));
|
||||
|
||||
for (auto& it : m_groups) {
|
||||
TRY(m_file->write(DeprecatedString::formatted("[{}]\n", it.key).bytes()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue