diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-10 14:51:43 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-22 07:17:08 +0200 |
commit | 8377db260fb07ce51bc320a37d47a837bd39df2d (patch) | |
tree | a2c1bb4c8d513ceff574d9739fdd8796d6571fac /Userland/Utilities | |
parent | b3cd91d26da4b074c4840e0247876e28fbb08191 (diff) | |
download | serenity-8377db260fb07ce51bc320a37d47a837bd39df2d.zip |
arp: Stop using DeprecatedString
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/arp.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Userland/Utilities/arp.cpp b/Userland/Utilities/arp.cpp index 020ee165da..9c4684f5ab 100644 --- a/Userland/Utilities/arp.cpp +++ b/Userland/Utilities/arp.cpp @@ -5,7 +5,6 @@ */ #include <AK/Assertions.h> -#include <AK/DeprecatedString.h> #include <AK/IPv4Address.h> #include <AK/JsonObject.h> #include <AK/MACAddress.h> @@ -56,10 +55,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) }; struct Column { - DeprecatedString title; + StringView title; Alignment alignment { Alignment::Left }; int width { 0 }; - DeprecatedString buffer; + StringView buffer; }; Vector<Column> columns; @@ -72,8 +71,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) return columns.size() - 1; }; - proto_address_column = add_column("Address", Alignment::Left, 15); - hw_address_column = add_column("HWaddress", Alignment::Left, 15); + proto_address_column = add_column("Address"sv, Alignment::Left, 15); + hw_address_column = add_column("HWaddress"sv, Alignment::Left, 15); auto print_column = [](auto& column, auto& string) { if (!column.width) { |