summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-28 11:24:22 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-28 11:24:22 +0200
commitd0072aef8b17650f8c6ec3bdb96e94fdb6dfcbca (patch)
tree507986cbecda5978fe99b2bbf3c4ca0ec0b45b01 /Userland/Libraries
parent6f45c27d060c86513efe06d702552dbcd144441e (diff)
downloadserenity-d0072aef8b17650f8c6ec3bdb96e94fdb6dfcbca.zip
LibCore: Make Core::Object::event() protected
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibCore/Object.h3
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&);