mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +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
|
@ -104,9 +104,9 @@ private:
|
|||
|
||||
/// Wraps a stream to silently ignore writes when the condition isn't true.
|
||||
template<typename ConditionT>
|
||||
class ConditionalOutputStream final : public Core::Stream::Stream {
|
||||
class ConditionalOutputStream final : public AK::Stream {
|
||||
public:
|
||||
ConditionalOutputStream(ConditionT&& condition, MaybeOwned<Core::Stream::Stream> stream)
|
||||
ConditionalOutputStream(ConditionT&& condition, MaybeOwned<AK::Stream> stream)
|
||||
: m_stream(move(stream))
|
||||
, m_condition(condition)
|
||||
{
|
||||
|
@ -141,7 +141,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
MaybeOwned<Core::Stream::Stream> m_stream;
|
||||
MaybeOwned<AK::Stream> m_stream;
|
||||
ConditionT m_condition;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue