NetworkSettings: Replace uses of JsonObject::get_deprecated()/get_ptr()

This commit is contained in:
Sam Atkins 2022-12-21 19:35:22 +00:00 committed by Tim Flynn
parent 3a48009022
commit ecbe317413
Notes: sideshowbarker 2024-07-18 00:34:07 +09:00

View file

@ -78,7 +78,7 @@ NetworkSettingsWidget::NetworkSettingsWidget()
size_t index = 0; size_t index = 0;
proc_net_adapters_json.as_array().for_each([&](auto& value) { proc_net_adapters_json.as_array().for_each([&](auto& value) {
auto& if_object = value.as_object(); auto& if_object = value.as_object();
auto adapter_name = if_object.get_deprecated("name"sv).to_deprecated_string(); auto adapter_name = if_object.get_deprecated_string("name"sv).value();
if (adapter_name == "loop") if (adapter_name == "loop")
return; return;