1
Fork 0
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:
Idan Horowitz 2022-02-12 15:45:39 +02:00 committed by Linus Groh
parent 721a4a0a67
commit 5e5b94a7ec
2 changed files with 2 additions and 2 deletions

View file

@ -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;