diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-03-05 10:17:53 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-05 18:25:59 +0000 |
commit | 84997ab0eecc9ee9926b0b05007f525bfd9cba6f (patch) | |
tree | dbd9d645e11e5acb840854e8a22c7a8dba7bc953 /Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp | |
parent | e661f03ffae146f70ba3c81ffe8cc2f2c50dd1ba (diff) | |
download | serenity-84997ab0eecc9ee9926b0b05007f525bfd9cba6f.zip |
LibWeb: Port ErrorEvent to new String
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp b/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp index dd5062f22e..d794c08e25 100644 --- a/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp +++ b/Userland/Libraries/LibWeb/HTML/ErrorEvent.cpp @@ -9,18 +9,18 @@ namespace Web::HTML { -WebIDL::ExceptionOr<JS::NonnullGCPtr<ErrorEvent>> ErrorEvent::create(JS::Realm& realm, DeprecatedFlyString const& event_name, ErrorEventInit const& event_init) +WebIDL::ExceptionOr<JS::NonnullGCPtr<ErrorEvent>> ErrorEvent::create(JS::Realm& realm, FlyString const& event_name, ErrorEventInit const& event_init) { return MUST_OR_THROW_OOM(realm.heap().allocate<ErrorEvent>(realm, realm, event_name, event_init)); } -WebIDL::ExceptionOr<JS::NonnullGCPtr<ErrorEvent>> ErrorEvent::construct_impl(JS::Realm& realm, DeprecatedFlyString const& event_name, ErrorEventInit const& event_init) +WebIDL::ExceptionOr<JS::NonnullGCPtr<ErrorEvent>> ErrorEvent::construct_impl(JS::Realm& realm, FlyString const& event_name, ErrorEventInit const& event_init) { return create(realm, event_name, event_init); } -ErrorEvent::ErrorEvent(JS::Realm& realm, DeprecatedFlyString const& event_name, ErrorEventInit const& event_init) - : DOM::Event(realm, event_name) +ErrorEvent::ErrorEvent(JS::Realm& realm, FlyString const& event_name, ErrorEventInit const& event_init) + : DOM::Event(realm, event_name.to_deprecated_fly_string()) , m_message(event_init.message) , m_filename(event_init.filename) , m_lineno(event_init.lineno) |