From 84e8ff34a27cb8f4f55be5ff1369e96397cf7ede Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 24 Jun 2023 12:35:24 +1200 Subject: [PATCH] diff: Use StringView instead of DeprecatedString --- Userland/Utilities/diff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/diff.cpp b/Userland/Utilities/diff.cpp index dcae6928f78..774f6eb6971 100644 --- a/Userland/Utilities/diff.cpp +++ b/Userland/Utilities/diff.cpp @@ -18,8 +18,8 @@ ErrorOr 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);