1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Userland: Avoid a bunch of JsonObject copies

JsonValue::as_object() returns a reference.
This commit is contained in:
Linus Groh 2021-05-31 17:59:02 +01:00
parent a6248101e2
commit 16d51d78c0
11 changed files with 12 additions and 13 deletions

View file

@ -60,7 +60,7 @@ int main(int argc, char** argv)
});
for (auto& value : sorted_regions) {
auto map = value.as_object();
auto& map = value.as_object();
auto address = map.get("address").to_int();
auto size = map.get("size").to_string();