diff: Use StringView instead of DeprecatedString

This commit is contained in:
Shannon Booth 2023-06-24 12:35:24 +12:00 committed by Andreas Kling
parent 96fecc434c
commit 84e8ff34a2
Notes: sideshowbarker 2024-07-17 06:28:38 +09:00

View file

@ -18,8 +18,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::pledge("stdio rpath"));
Core::ArgsParser parser;
DeprecatedString filename1;
DeprecatedString filename2;
StringView filename1;
StringView filename2;
parser.add_positional_argument(filename1, "First file to compare", "file1", Core::ArgsParser::Required::Yes);
parser.add_positional_argument(filename2, "Second file to compare", "file2", Core::ArgsParser::Required::Yes);