diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-12-21 11:42:06 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-01-17 19:52:52 -0500 |
commit | 1dd6b7f5b787e1893b708ddf58492f9fdd50ae51 (patch) | |
tree | 3f9f665b573fa3097b707b1cc8cb08e1572b34cd /AK/JsonObject.h | |
parent | efe4329f9fe448eb17784d7a9b9e6e519ec4fa57 (diff) | |
download | serenity-1dd6b7f5b787e1893b708ddf58492f9fdd50ae51.zip |
AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()
This is a preparatory step to making `get()` return `ErrorOr`.
Diffstat (limited to 'AK/JsonObject.h')
-rw-r--r-- | AK/JsonObject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/JsonObject.h b/AK/JsonObject.h index a6cf4883dd..836defad9e 100644 --- a/AK/JsonObject.h +++ b/AK/JsonObject.h @@ -52,7 +52,7 @@ public: [[nodiscard]] size_t size() const { return m_members.size(); } [[nodiscard]] bool is_empty() const { return m_members.is_empty(); } - [[nodiscard]] JsonValue const& get(StringView key) const + [[nodiscard]] JsonValue const& get_deprecated(StringView key) const { auto const* value = get_ptr(key); static JsonValue* s_null_value { nullptr }; |