mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 01:55:07 +00:00
LibSymbolication: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
6ee68d6e45
commit
783251b98a
|
@ -181,9 +181,9 @@ Vector<Symbol> symbolicate_thread(pid_t pid, pid_t tid, IncludeSourcePosition in
|
|||
|
||||
for (auto& region_value : json.value().as_array().values()) {
|
||||
auto& region = region_value.as_object();
|
||||
auto name = region.get_deprecated("name"sv).to_deprecated_string();
|
||||
auto address = region.get_deprecated("address"sv).to_addr();
|
||||
auto size = region.get_deprecated("size"sv).to_addr();
|
||||
auto name = region.get_deprecated_string("name"sv).value_or({});
|
||||
auto address = region.get_addr("address"sv).value_or(0);
|
||||
auto size = region.get_addr("size"sv).value_or(0);
|
||||
|
||||
DeprecatedString path;
|
||||
if (name == "/usr/lib/Loader.so") {
|
||||
|
|
Loading…
Reference in a new issue