summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Cookie
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/Cookie')
-rw-r--r--Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp6
-rw-r--r--Userland/Libraries/LibWeb/Cookie/ParsedCookie.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp b/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp
index 7044d67d6d..fd06e2949b 100644
--- a/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp
+++ b/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp
@@ -27,7 +27,7 @@ static void on_secure_attribute(ParsedCookie& parsed_cookie);
static void on_http_only_attribute(ParsedCookie& parsed_cookie);
static Optional<Core::DateTime> parse_date_time(StringView date_string);
-Optional<ParsedCookie> parse_cookie(const String& cookie_string)
+Optional<ParsedCookie> parse_cookie(String const& cookie_string)
{
// https://tools.ietf.org/html/rfc6265#section-5.2
@@ -293,7 +293,7 @@ Optional<Core::DateTime> parse_date_time(StringView date_string)
bool found_month = false;
bool found_year = false;
- for (const auto& date_token : date_tokens) {
+ for (auto const& date_token : date_tokens) {
if (!found_time && parse_time(date_token)) {
found_time = true;
} else if (!found_day_of_month && parse_day_of_month(date_token)) {
@@ -333,7 +333,7 @@ Optional<Core::DateTime> parse_date_time(StringView date_string)
}
-bool IPC::encode(IPC::Encoder& encoder, const Web::Cookie::ParsedCookie& cookie)
+bool IPC::encode(IPC::Encoder& encoder, Web::Cookie::ParsedCookie const& cookie)
{
encoder << cookie.name;
encoder << cookie.value;
diff --git a/Userland/Libraries/LibWeb/Cookie/ParsedCookie.h b/Userland/Libraries/LibWeb/Cookie/ParsedCookie.h
index 6a8bb72551..2d293c3fa2 100644
--- a/Userland/Libraries/LibWeb/Cookie/ParsedCookie.h
+++ b/Userland/Libraries/LibWeb/Cookie/ParsedCookie.h
@@ -24,13 +24,13 @@ struct ParsedCookie {
bool http_only_attribute_present { false };
};
-Optional<ParsedCookie> parse_cookie(const String& cookie_string);
+Optional<ParsedCookie> parse_cookie(String const& cookie_string);
}
namespace IPC {
-bool encode(IPC::Encoder&, const Web::Cookie::ParsedCookie&);
+bool encode(IPC::Encoder&, Web::Cookie::ParsedCookie const&);
ErrorOr<void> decode(IPC::Decoder&, Web::Cookie::ParsedCookie&);
}