mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibCore: Make Core::Object::property() const
This commit is contained in:
parent
370ce42430
commit
6041e48eaa
Notes:
sideshowbarker
2024-07-19 00:07:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6041e48eaa4
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -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<String, NonnullOwnPtr<Property>>& properties() const { return m_properties; }
|
||||
|
||||
static IntrusiveList<Object, &Object::m_all_objects_list_node>& all_objects();
|
||||
|
|
Loading…
Reference in a new issue