mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
AK: Deprecate the old AK::Stream
This also removes a few cases where the respective header wasn't actually required to be included.
This commit is contained in:
parent
230cb3b0cb
commit
ae64b68717
Notes:
sideshowbarker
2024-07-17 00:59:21 +09:00
Author: https://github.com/timschumi
Commit: ae64b68717
Pull-request: https://github.com/SerenityOS/serenity/pull/17173
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/alimpfard
38 changed files with 116 additions and 120 deletions
|
@ -7,8 +7,8 @@
|
|||
#include "Client.h"
|
||||
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/DeprecatedMemoryStream.h>
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Types.h>
|
||||
|
@ -194,7 +194,7 @@ ErrorOr<void> Client::send_command(Command command)
|
|||
ErrorOr<void> Client::send_commands(Vector<Command> commands)
|
||||
{
|
||||
auto buffer = TRY(ByteBuffer::create_uninitialized(commands.size() * 3));
|
||||
OutputMemoryStream stream { buffer };
|
||||
DeprecatedOutputMemoryStream stream { buffer };
|
||||
|
||||
for (auto& command : commands)
|
||||
stream << (u8)IAC << command.command << command.subcommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue