mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +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
76 changed files with 671 additions and 671 deletions
|
@ -18,9 +18,9 @@ Slide::Slide(NonnullRefPtrVector<SlideObject> slide_objects, DeprecatedString ti
|
|||
ErrorOr<Slide> Slide::parse_slide(JsonObject const& slide_json)
|
||||
{
|
||||
// FIXME: Use the text with the "title" role for a title, if there is no title given.
|
||||
auto title = slide_json.get("title"sv).as_string_or("Untitled slide");
|
||||
auto title = slide_json.get_deprecated("title"sv).as_string_or("Untitled slide");
|
||||
|
||||
auto const& maybe_slide_objects = slide_json.get("objects"sv);
|
||||
auto const& maybe_slide_objects = slide_json.get_deprecated("objects"sv);
|
||||
if (!maybe_slide_objects.is_array())
|
||||
return Error::from_string_view("Slide objects must be an array"sv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue