mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 08:18:55 +00:00
IPCCompiler: Use Core::Stream API
This commit is contained in:
parent
2dea636f33
commit
32810f6d1a
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/AtkinsSJ
Commit: 32810f6d1a
Pull-request: https://github.com/SerenityOS/serenity/pull/15215
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