mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 07:49:05 +00:00
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
This commit is contained in:
parent
efe4329f9f
commit
1dd6b7f5b7
Notes:
sideshowbarker
2024-07-17 01:34:39 +09:00
Author: https://github.com/AtkinsSJ
Commit: 1dd6b7f5b7
Pull-request: https://github.com/SerenityOS/serenity/pull/17044
76 changed files with 671 additions and 671 deletions
|
@ -18,8 +18,8 @@ auto Launcher::Details::from_details_str(DeprecatedString const& details_str) ->
|
|||
auto details = adopt_ref(*new Details);
|
||||
auto json = JsonValue::from_string(details_str).release_value_but_fixme_should_propagate_errors();
|
||||
auto const& obj = json.as_object();
|
||||
details->executable = obj.get("executable"sv).to_deprecated_string();
|
||||
details->name = obj.get("name"sv).to_deprecated_string();
|
||||
details->executable = obj.get_deprecated("executable"sv).to_deprecated_string();
|
||||
details->name = obj.get_deprecated("name"sv).to_deprecated_string();
|
||||
if (auto type_value = obj.get_ptr("type"sv)) {
|
||||
auto type_str = type_value->to_deprecated_string();
|
||||
if (type_str == "app")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue