mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:37:45 +00:00
Everywhere: Remove the AK::
qualifier from Stream usages
This commit is contained in:
parent
874c7bba28
commit
43f98ac6e1
73 changed files with 275 additions and 278 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <LibMain/Main.h>
|
||||
#include <unistd.h>
|
||||
|
||||
static ErrorOr<void> decompress_file(NonnullOwnPtr<Core::File> input_stream, AK::Stream& output_stream)
|
||||
static ErrorOr<void> decompress_file(NonnullOwnPtr<Core::File> input_stream, Stream& output_stream)
|
||||
{
|
||||
auto gzip_stream = Compress::GzipDecompressor { move(input_stream) };
|
||||
|
||||
|
|
|
@ -334,7 +334,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual void stream_into(AK::Stream&) override
|
||||
virtual void stream_into(Stream&) override
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -413,7 +413,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual void stream_into(AK::Stream&) override
|
||||
virtual void stream_into(Stream&) override
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -482,7 +482,7 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
virtual void stream_into(AK::Stream&) override
|
||||
virtual void stream_into(Stream&) override
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ static String s_history_path = String {};
|
|||
static int s_repl_line_level = 0;
|
||||
static bool s_fail_repl = false;
|
||||
|
||||
static ErrorOr<void> print(JS::Value value, AK::Stream& stream)
|
||||
static ErrorOr<void> print(JS::Value value, Stream& stream)
|
||||
{
|
||||
JS::PrintContext print_context { .vm = *g_vm, .stream = stream, .strip_ansi = s_strip_ansi };
|
||||
return JS::print(value, print_context);
|
||||
|
|
|
@ -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 AK::Stream {
|
||||
class ConditionalOutputStream final : public Stream {
|
||||
public:
|
||||
ConditionalOutputStream(ConditionT&& condition, MaybeOwned<AK::Stream> stream)
|
||||
ConditionalOutputStream(ConditionT&& condition, MaybeOwned<Stream> stream)
|
||||
: m_stream(move(stream))
|
||||
, m_condition(condition)
|
||||
{
|
||||
|
@ -141,7 +141,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
MaybeOwned<AK::Stream> m_stream;
|
||||
MaybeOwned<Stream> m_stream;
|
||||
ConditionT m_condition;
|
||||
};
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
if (!directory.is_empty())
|
||||
TRY(Core::System::chdir(directory));
|
||||
|
||||
NonnullOwnPtr<AK::Stream> input_stream = TRY(Core::File::open_file_or_standard_stream(archive_file, Core::File::OpenMode::Read));
|
||||
NonnullOwnPtr<Stream> input_stream = TRY(Core::File::open_file_or_standard_stream(archive_file, Core::File::OpenMode::Read));
|
||||
|
||||
if (gzip)
|
||||
input_stream = make<Compress::GzipDecompressor>(move(input_stream));
|
||||
|
@ -205,7 +205,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
return 1;
|
||||
}
|
||||
|
||||
NonnullOwnPtr<AK::Stream> output_stream = TRY(Core::File::standard_output());
|
||||
NonnullOwnPtr<Stream> output_stream = TRY(Core::File::standard_output());
|
||||
|
||||
if (!archive_file.is_empty())
|
||||
output_stream = TRY(Core::File::open(archive_file, Core::File::OpenMode::Write));
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
RefPtr<Line::Editor> g_line_editor;
|
||||
static OwnPtr<AK::Stream> g_stdout {};
|
||||
static OwnPtr<Stream> g_stdout {};
|
||||
static OwnPtr<Wasm::Printer> g_printer {};
|
||||
static bool g_continue { false };
|
||||
static void (*old_signal)(int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue