mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibGUI: Make old register_property a private method of Object
This commit is contained in:
parent
1f4b15dcaa
commit
61d82e36b6
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/DanShaders Commit: https://github.com/SerenityOS/serenity/commit/61d82e36b6 Pull-request: https://github.com/SerenityOS/serenity/pull/21812 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,6 @@ public:
|
|||
protected:
|
||||
explicit Object(Core::EventReceiver* parent = nullptr);
|
||||
|
||||
void register_property(ByteString const& name, Function<JsonValue()> getter, Function<bool(JsonValue const&)> setter = nullptr);
|
||||
|
||||
template<typename Getter, typename Deserializer, typename Setter>
|
||||
void register_property(StringView name, Getter&& getter, Deserializer&& deserializer, Setter&& setter)
|
||||
{
|
||||
|
@ -98,6 +96,8 @@ protected:
|
|||
}
|
||||
|
||||
private:
|
||||
void register_property(ByteString const& name, Function<JsonValue()> getter, Function<bool(JsonValue const&)> setter = nullptr);
|
||||
|
||||
HashMap<ByteString, NonnullOwnPtr<Property>> m_properties;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue