From 32810f6d1ab0a8710293752911e35edbd4adbfb3 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 12 Sep 2022 15:39:04 +0100 Subject: [PATCH] IPCCompiler: Use Core::Stream API --- Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp index 80c84fb95d..28aca300b3 100644 --- a/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/IPCCompiler/main.cpp @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include @@ -797,9 +797,9 @@ ErrorOr serenity_main(Main::Arguments arguments) return 1; } - auto file = TRY(Core::File::open(arguments.strings[1], Core::OpenMode::ReadOnly)); + auto file = TRY(Core::Stream::File::open(arguments.strings[1], Core::Stream::OpenMode::Read)); - auto file_contents = file->read_all(); + auto file_contents = TRY(file->read_all()); auto endpoints = parse(file_contents);