From a91a49337c5992d64b30f493eea1eb492792b667 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Wed, 12 May 2021 13:56:43 +0430 Subject: LibCore+Everywhere: Move OpenMode out of IODevice ...and make it an enum class so people don't omit "OpenMode". --- Userland/Games/Chess/Engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Games/Chess/Engine.cpp') diff --git a/Userland/Games/Chess/Engine.cpp b/Userland/Games/Chess/Engine.cpp index 53e04a18b1..122c57d422 100644 --- a/Userland/Games/Chess/Engine.cpp +++ b/Userland/Games/Chess/Engine.cpp @@ -49,11 +49,11 @@ Engine::Engine(const StringView& command) close(rpipefds[1]); auto infile = Core::File::construct(); - infile->open(rpipefds[0], Core::IODevice::ReadOnly, Core::File::ShouldCloseFileDescriptor::Yes); + infile->open(rpipefds[0], Core::OpenMode::ReadOnly, Core::File::ShouldCloseFileDescriptor::Yes); set_in(infile); auto outfile = Core::File::construct(); - outfile->open(wpipefds[1], Core::IODevice::WriteOnly, Core::File::ShouldCloseFileDescriptor::Yes); + outfile->open(wpipefds[1], Core::OpenMode::WriteOnly, Core::File::ShouldCloseFileDescriptor::Yes); set_out(outfile); send_command(Chess::UCI::UCICommand()); -- cgit v1.2.3