From 61d82e36b66ab533e9a3a30d8ed7b065a6378c43 Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Sun, 5 Nov 2023 19:29:32 -0500 Subject: [PATCH] LibGUI: Make old register_property a private method of Object --- Userland/Libraries/LibGUI/Object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGUI/Object.h b/Userland/Libraries/LibGUI/Object.h index ef3cbfcf27..ed5ab8a529 100644 --- a/Userland/Libraries/LibGUI/Object.h +++ b/Userland/Libraries/LibGUI/Object.h @@ -58,8 +58,6 @@ public: protected: explicit Object(Core::EventReceiver* parent = nullptr); - void register_property(ByteString const& name, Function getter, Function setter = nullptr); - template void register_property(StringView name, Getter&& getter, Deserializer&& deserializer, Setter&& setter) { @@ -98,6 +96,8 @@ protected: } private: + void register_property(ByteString const& name, Function getter, Function setter = nullptr); + HashMap> m_properties; };