mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:18:12 +00:00
IPCCompiler: Use Core::Stream API
This commit is contained in:
parent
2dea636f33
commit
32810f6d1a
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
#include <AK/HashMap.h>
|
||||
#include <AK/SourceGenerator.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/Stream.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
|
@ -797,9 +797,9 @@ ErrorOr<int> 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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue