1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

Chess: Avoid IODevice and DeprecatedFile

This commit is contained in:
Ben Wiederhake 2023-05-07 00:53:19 +02:00 committed by Jelle Raaijmakers
parent 715f4a8d7e
commit 0fe29a48ad
5 changed files with 30 additions and 33 deletions

View file

@ -26,8 +26,8 @@ public:
Function<void(int)> on_quit;
private:
ChessEngine(NonnullRefPtr<Core::IODevice> in, NonnullRefPtr<Core::IODevice> out)
: Endpoint(in, out)
ChessEngine(NonnullOwnPtr<Core::File> in, NonnullOwnPtr<Core::File> out)
: Endpoint(move(in), move(out))
{
on_command_read_error = [](auto command, auto error) {
outln("{}: '{}'", error, command);