mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 03:12:07 -05:00
SystemMonitor: Remove unused this
lambda captures
This fixes an `unused-lambda-capture` warning emitted by Clang, and reduces the size of the produced lambda object.
This commit is contained in:
parent
fa8507d1ce
commit
3a8b8d8a0b
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
|
|||
net_adapters_fields.empend("class_name", "Class", Gfx::TextAlignment::CenterLeft);
|
||||
net_adapters_fields.empend("mac_address", "MAC", Gfx::TextAlignment::CenterLeft);
|
||||
net_adapters_fields.empend("Link status", Gfx::TextAlignment::CenterLeft,
|
||||
[this](JsonObject const& object) -> String {
|
||||
[](JsonObject const& object) -> String {
|
||||
if (!object.get("link_up").as_bool())
|
||||
return "Down";
|
||||
|
||||
|
@ -57,7 +57,7 @@ NetworkStatisticsWidget::NetworkStatisticsWidget()
|
|||
object.get("link_full_duplex").as_bool() ? "full" : "half");
|
||||
});
|
||||
net_adapters_fields.empend("IPv4", Gfx::TextAlignment::CenterLeft,
|
||||
[this](JsonObject const& object) -> String {
|
||||
[](JsonObject const& object) -> String {
|
||||
return object.get("ipv4_address").as_string_or("");
|
||||
});
|
||||
net_adapters_fields.empend("packets_in", "Pkt In", Gfx::TextAlignment::CenterRight);
|
||||
|
|
Loading…
Add table
Reference in a new issue