diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-28 11:24:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-28 11:24:22 +0200 |
commit | d0072aef8b17650f8c6ec3bdb96e94fdb6dfcbca (patch) | |
tree | 507986cbecda5978fe99b2bbf3c4ca0ec0b45b01 /Userland/Libraries | |
parent | 6f45c27d060c86513efe06d702552dbcd144441e (diff) | |
download | serenity-d0072aef8b17650f8c6ec3bdb96e94fdb6dfcbca.zip |
LibCore: Make Core::Object::event() protected
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibCore/Object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/Object.h b/Userland/Libraries/LibCore/Object.h index 05a33d3f6d..c3b105aa54 100644 --- a/Userland/Libraries/LibCore/Object.h +++ b/Userland/Libraries/LibCore/Object.h @@ -73,7 +73,6 @@ public: virtual ~Object(); virtual const char* class_name() const = 0; - virtual void event(Core::Event&); const String& name() const { return m_name; } void set_name(const StringView& name) { m_name = name; } @@ -155,6 +154,8 @@ protected: void register_property(const String& name, Function<JsonValue()> getter, Function<bool(const JsonValue&)> setter = nullptr); + virtual void event(Core::Event&); + virtual void timer_event(TimerEvent&); virtual void custom_event(CustomEvent&); |