mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
Userland: Avoid a bunch of JsonObject copies
JsonValue::as_object() returns a reference.
This commit is contained in:
parent
a6248101e2
commit
16d51d78c0
11 changed files with 12 additions and 13 deletions
|
@ -24,7 +24,7 @@ public:
|
|||
{
|
||||
if (!value.is_object())
|
||||
return {};
|
||||
auto entry = value.as_object();
|
||||
auto& entry = value.as_object();
|
||||
Quote q;
|
||||
if (!entry.has("quote") || !entry.has("author") || !entry.has("utc_time") || !entry.has("url"))
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue