From 6041e48eaa454ada453be88d39d11d9e5790851f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 4 Jan 2021 13:41:13 +0100 Subject: LibCore: Make Core::Object::property() const --- Libraries/LibCore/Object.cpp | 2 +- Libraries/LibCore/Object.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Libraries') diff --git a/Libraries/LibCore/Object.cpp b/Libraries/LibCore/Object.cpp index 6860510167..dd627fb8cc 100644 --- a/Libraries/LibCore/Object.cpp +++ b/Libraries/LibCore/Object.cpp @@ -195,7 +195,7 @@ void Object::save_to(JsonObject& json) } } -JsonValue Object::property(const StringView& name) +JsonValue Object::property(const StringView& name) const { auto it = m_properties.find(name); if (it == m_properties.end()) diff --git a/Libraries/LibCore/Object.h b/Libraries/LibCore/Object.h index c7fb49741d..f8e81743c6 100644 --- a/Libraries/LibCore/Object.h +++ b/Libraries/LibCore/Object.h @@ -120,7 +120,7 @@ public: void save_to(AK::JsonObject&); bool set_property(const StringView& name, const JsonValue& value); - JsonValue property(const StringView& name); + JsonValue property(const StringView& name) const; const HashMap>& properties() const { return m_properties; } static IntrusiveList& all_objects(); -- cgit v1.2.3