1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +00:00

LibCore: Rename File to DeprecatedFile

As usual, this removes many unused includes and moves used includes
further down the chain.
This commit is contained in:
Tim Schumacher 2023-02-08 21:08:01 +01:00 committed by Linus Groh
parent 14951b92ca
commit d43a7eae54
193 changed files with 536 additions and 556 deletions

View file

@ -108,13 +108,13 @@ TranslationUnit[0:0->144:0]
[const] char
output_filename
NullPointerLiteral[21:34->21:40]
VariableDeclaration[22:4->22:50]
VariableDeclaration[22:4->22:60]
NamedType[22:4->22:7]
auto
trace_file
FunctionCall[22:22->22:50]
Name[22:22->22:47]
Core::File::standard_error
FunctionCall[22:22->22:60]
Name[22:22->22:57]
Core::DeprecatedFile::standard_error
VariableDeclaration[24:4->24:27]
NamedType[24:4->24:19]
Core::ArgsParser
@ -192,16 +192,16 @@ TranslationUnit[0:0->144:0]
NullPointerLiteral[33:27->33:33]
Then:
BlockStatement[33:36->42:4]
VariableDeclaration[34:8->34:87]
VariableDeclaration[34:8->34:97]
NamedType[34:8->34:11]
auto
open_result
FunctionCall[34:27->34:87]
Name[34:27->34:42]
Core::File::open
Name[34:44->34:58]
FunctionCall[34:27->34:97]
Name[34:27->34:52]
Core::DeprecatedFile::open
Name[34:54->34:68]
output_filename
Name[34:61->34:85]
Name[34:71->34:95]
Core::OpenMode::WriteOnly
IfStatement[35:8->39:8]
Predicate:

View file

@ -20,7 +20,7 @@ int main(int argc, char** argv)
Vector<const char*> child_argv;
const char* output_filename = nullptr;
auto trace_file = Core::File::standard_error();
auto trace_file = Core::DeprecatedFile::standard_error();
Core::ArgsParser parser;
parser.set_general_help(
@ -32,7 +32,7 @@ int main(int argc, char** argv)
parser.parse(argc, argv);
if (output_filename != nullptr) {
auto open_result = Core::File::open(output_filename, Core::OpenMode::WriteOnly);
auto open_result = Core::DeprecatedFile::open(output_filename, Core::OpenMode::WriteOnly);
if (open_result.is_error()) {
outln(stderr, "Failed to open output file: {}", open_result.error());
return 1;