mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
Services: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
b592629fe5
commit
ba51e2dd3f
6 changed files with 30 additions and 30 deletions
|
@ -96,8 +96,8 @@ DeprecatedString KeymapSwitcher::get_current_keymap() const
|
|||
|
||||
auto json = JsonValue::from_string(proc_keymap->read_all()).release_value_but_fixme_should_propagate_errors();
|
||||
auto const& keymap_object = json.as_object();
|
||||
VERIFY(keymap_object.has("keymap"sv));
|
||||
return keymap_object.get_deprecated("keymap"sv).to_deprecated_string();
|
||||
VERIFY(keymap_object.has_string("keymap"sv));
|
||||
return keymap_object.get_deprecated_string("keymap"sv).value();
|
||||
}
|
||||
|
||||
void KeymapSwitcher::set_keymap(const AK::DeprecatedString& keymap)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue