diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Event.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Event.h b/Userland/Libraries/LibWeb/DOM/Event.h index 7fbe7db1a2..1da8eadc4e 100644 --- a/Userland/Libraries/LibWeb/DOM/Event.h +++ b/Userland/Libraries/LibWeb/DOM/Event.h @@ -43,7 +43,7 @@ public: static NonnullRefPtr<Event> create(const FlyString& event_name) { - return adopt(*new Event(event_name)); + return adopt_ref(*new Event(event_name)); } static NonnullRefPtr<Event> create_with_global_object(Bindings::WindowObject&, const FlyString& event_name) { |