mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibWeb: Make Document::open functions take a StringView
One of these functions doesn't make any use of the arguments at all, and the other defers to an open helper which already takes a StringView.
This commit is contained in:
parent
8ad05fff4a
commit
e42bda5f19
2 changed files with 4 additions and 4 deletions
|
@ -319,8 +319,8 @@ public:
|
|||
WebIDL::ExceptionOr<void> write(Vector<DeprecatedString> const& strings);
|
||||
WebIDL::ExceptionOr<void> writeln(Vector<DeprecatedString> const& strings);
|
||||
|
||||
WebIDL::ExceptionOr<Document*> open(DeprecatedString const& = "", DeprecatedString const& = "");
|
||||
WebIDL::ExceptionOr<JS::GCPtr<HTML::WindowProxy>> open(DeprecatedString const& url, DeprecatedString const& name, DeprecatedString const& features);
|
||||
WebIDL::ExceptionOr<Document*> open(StringView = ""sv, StringView = ""sv);
|
||||
WebIDL::ExceptionOr<JS::GCPtr<HTML::WindowProxy>> open(StringView url, StringView name, StringView features);
|
||||
WebIDL::ExceptionOr<void> close();
|
||||
|
||||
HTML::Window* default_view() { return m_window.ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue