mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02: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:
committed by
Andreas Kling
parent
fa8507d1ce
commit
3a8b8d8a0b
Notes:
sideshowbarker
2024-07-18 07:15:56 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/3a8b8d8a0b7 Pull-request: https://github.com/SerenityOS/serenity/pull/8718 Issue: https://github.com/SerenityOS/serenity/issues/363 Reviewed-by: https://github.com/gunnarbeutner ✅ Reviewed-by: https://github.com/nico
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user