mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:47:46 +00:00
Browser: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
0716b2afdc
commit
22b0089783
2 changed files with 19 additions and 19 deletions
|
@ -506,8 +506,8 @@ ErrorOr<void> BrowserWindow::load_search_engines(GUI::Menu& settings_menu)
|
|||
if (!json_item.is_object())
|
||||
continue;
|
||||
auto search_engine = json_item.as_object();
|
||||
auto name = search_engine.get_deprecated("title"sv).to_deprecated_string();
|
||||
auto url_format = search_engine.get_deprecated("url_format"sv).to_deprecated_string();
|
||||
auto name = search_engine.get_deprecated_string("title"sv).value();
|
||||
auto url_format = search_engine.get_deprecated_string("url_format"sv).value();
|
||||
|
||||
auto action = GUI::Action::create_checkable(
|
||||
name, [&, url_format](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue