mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 15:07:45 +00:00
LibWeb: Make Fetch::Infrastructure::Request::set_client() take a pointer
This commit is contained in:
parent
72a752685f
commit
16d6c62193
2 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ public:
|
|||
|
||||
[[nodiscard]] HTML::EnvironmentSettingsObject const* client() const { return m_client; }
|
||||
[[nodiscard]] HTML::EnvironmentSettingsObject* client() { return m_client; }
|
||||
void set_client(HTML::EnvironmentSettingsObject& client) { m_client = &client; }
|
||||
void set_client(HTML::EnvironmentSettingsObject* client) { m_client = client; }
|
||||
|
||||
[[nodiscard]] ReservedClientType const& reserved_client() const { return m_reserved_client; }
|
||||
[[nodiscard]] ReservedClientType& reserved_client() { return m_reserved_client; }
|
||||
|
|
|
@ -198,7 +198,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Request>> Request::construct_impl(JS::Realm
|
|||
|
||||
// client
|
||||
// This’s relevant settings object.
|
||||
request.set_client(HTML::relevant_settings_object(*request_object));
|
||||
request.set_client(&HTML::relevant_settings_object(*request_object));
|
||||
|
||||
// window
|
||||
// window.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue