mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
NetworkSettings: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
3a48009022
commit
ecbe317413
Notes:
sideshowbarker
2024-07-18 00:34:07 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/ecbe317413 Pull-request: https://github.com/SerenityOS/serenity/pull/17185
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue