diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-02-15 18:56:00 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-18 00:52:47 +0100 |
commit | 2ed7f64c73f931228102b4e259c8cb53f8b07283 (patch) | |
tree | e415feec6cd8ad5b3a56ffaa28cac14f7bd4b7a4 /Userland/Libraries/LibWeb/HTML/CloseEvent.h | |
parent | b7c488e51e9eb437d983d4f51f8f8262805b7e9d (diff) | |
download | serenity-2ed7f64c73f931228102b4e259c8cb53f8b07283.zip |
LibWeb: Make factory method of HTML::CloseEvent fallible
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/CloseEvent.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/CloseEvent.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/CloseEvent.h b/Userland/Libraries/LibWeb/HTML/CloseEvent.h index fb2886bc8b..d69334eecf 100644 --- a/Userland/Libraries/LibWeb/HTML/CloseEvent.h +++ b/Userland/Libraries/LibWeb/HTML/CloseEvent.h @@ -21,8 +21,8 @@ class CloseEvent : public DOM::Event { WEB_PLATFORM_OBJECT(CloseEvent, DOM::Event); public: - static CloseEvent* create(JS::Realm&, DeprecatedFlyString const& event_name, CloseEventInit const& event_init = {}); - static CloseEvent* construct_impl(JS::Realm&, DeprecatedFlyString const& event_name, CloseEventInit const& event_init); + static WebIDL::ExceptionOr<JS::NonnullGCPtr<CloseEvent>> create(JS::Realm&, DeprecatedFlyString const& event_name, CloseEventInit const& event_init = {}); + static WebIDL::ExceptionOr<JS::NonnullGCPtr<CloseEvent>> construct_impl(JS::Realm&, DeprecatedFlyString const& event_name, CloseEventInit const& event_init); virtual ~CloseEvent() override; |