mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
arp: Stop using DeprecatedString
This commit is contained in:
parent
b3cd91d26d
commit
8377db260f
1 changed files with 4 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue