1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 15:17:45 +00:00

LibWeb: Make Fetch::Infrastructure::Request::set_client() take a pointer

This commit is contained in:
Linus Groh 2022-10-04 23:43:37 +01:00
parent 72a752685f
commit 16d6c62193
2 changed files with 2 additions and 2 deletions

View file

@ -175,7 +175,7 @@ public:
[[nodiscard]] HTML::EnvironmentSettingsObject const* client() const { return m_client; } [[nodiscard]] HTML::EnvironmentSettingsObject const* client() const { return m_client; }
[[nodiscard]] HTML::EnvironmentSettingsObject* client() { 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 const& reserved_client() const { return m_reserved_client; }
[[nodiscard]] ReservedClientType& reserved_client() { return m_reserved_client; } [[nodiscard]] ReservedClientType& reserved_client() { return m_reserved_client; }

View file

@ -198,7 +198,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Request>> Request::construct_impl(JS::Realm
// client // client
// Thiss relevant settings object. // Thiss relevant settings object.
request.set_client(HTML::relevant_settings_object(*request_object)); request.set_client(&HTML::relevant_settings_object(*request_object));
// window // window
// window. // window.