mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00: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/Assertions.h>
|
||||||
#include <AK/DeprecatedString.h>
|
|
||||||
#include <AK/IPv4Address.h>
|
#include <AK/IPv4Address.h>
|
||||||
#include <AK/JsonObject.h>
|
#include <AK/JsonObject.h>
|
||||||
#include <AK/MACAddress.h>
|
#include <AK/MACAddress.h>
|
||||||
|
@ -56,10 +55,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Column {
|
struct Column {
|
||||||
DeprecatedString title;
|
StringView title;
|
||||||
Alignment alignment { Alignment::Left };
|
Alignment alignment { Alignment::Left };
|
||||||
int width { 0 };
|
int width { 0 };
|
||||||
DeprecatedString buffer;
|
StringView buffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
Vector<Column> columns;
|
Vector<Column> columns;
|
||||||
|
@ -72,8 +71,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
return columns.size() - 1;
|
return columns.size() - 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
proto_address_column = add_column("Address", Alignment::Left, 15);
|
proto_address_column = add_column("Address"sv, Alignment::Left, 15);
|
||||||
hw_address_column = add_column("HWaddress", Alignment::Left, 15);
|
hw_address_column = add_column("HWaddress"sv, Alignment::Left, 15);
|
||||||
|
|
||||||
auto print_column = [](auto& column, auto& string) {
|
auto print_column = [](auto& column, auto& string) {
|
||||||
if (!column.width) {
|
if (!column.width) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue