mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
LibWeb: Pass cookie string by reference in Document::set_cookie
This string is only taken by const reference internally, so there's no point in forcing the callers to copy the string.
This commit is contained in:
parent
721a4a0a67
commit
5e5b94a7ec
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ public:
|
|||
virtual ~Document() override;
|
||||
|
||||
String cookie(Cookie::Source = Cookie::Source::NonHttp);
|
||||
void set_cookie(String, Cookie::Source = Cookie::Source::NonHttp);
|
||||
void set_cookie(String const&, Cookie::Source = Cookie::Source::NonHttp);
|
||||
|
||||
String referrer() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue