diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-02-08 21:08:01 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-13 00:50:07 +0000 |
commit | d43a7eae545cd699f301471bd0f82399174339c1 (patch) | |
tree | c0a55f768f845041c3aebed3f126d462155a799f /Userland/Libraries/LibCpp | |
parent | 14951b92ca6160664ccb68c5e1b2d40133763e5f (diff) | |
download | serenity-d43a7eae545cd699f301471bd0f82399174339c1.zip |
LibCore: Rename `File` to `DeprecatedFile`
As usual, this removes many unused includes and moves used includes
further down the chain.
Diffstat (limited to 'Userland/Libraries/LibCpp')
-rw-r--r-- | Userland/Libraries/LibCpp/Tests/parser/strace.ast | 20 | ||||
-rw-r--r-- | Userland/Libraries/LibCpp/Tests/parser/strace.cpp | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/Userland/Libraries/LibCpp/Tests/parser/strace.ast b/Userland/Libraries/LibCpp/Tests/parser/strace.ast index 7eb2d0d36d..91c7265c86 100644 --- a/Userland/Libraries/LibCpp/Tests/parser/strace.ast +++ b/Userland/Libraries/LibCpp/Tests/parser/strace.ast @@ -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: diff --git a/Userland/Libraries/LibCpp/Tests/parser/strace.cpp b/Userland/Libraries/LibCpp/Tests/parser/strace.cpp index 9844198f63..b7f1c2d6d1 100644 --- a/Userland/Libraries/LibCpp/Tests/parser/strace.cpp +++ b/Userland/Libraries/LibCpp/Tests/parser/strace.cpp @@ -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; |