diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-21 17:28:03 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-26 09:57:14 -0500 |
commit | 783251b98ad4a2e8efcaff90914d82320dd7ab8b (patch) | |
tree | 22e7e59061d3aebe6b12e317e2aa245eee483f66 /Userland/Libraries/LibSymbolication | |
parent | 6ee68d6e454a96d939c02c38977ab36d50845454 (diff) | |
download | serenity-783251b98ad4a2e8efcaff90914d82320dd7ab8b.zip |
LibSymbolication: Replace uses of JsonObject::get_deprecated()/get_ptr()
Diffstat (limited to 'Userland/Libraries/LibSymbolication')
-rw-r--r-- | Userland/Libraries/LibSymbolication/Symbolication.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibSymbolication/Symbolication.cpp b/Userland/Libraries/LibSymbolication/Symbolication.cpp index a187b78a90..9f5995f122 100644 --- a/Userland/Libraries/LibSymbolication/Symbolication.cpp +++ b/Userland/Libraries/LibSymbolication/Symbolication.cpp @@ -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") { |