summaryrefslogtreecommitdiff
path: root/AK/URL.h
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-05-31 11:44:13 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-01 09:28:05 +0200
commitd6709ac87d75b601806466df29c46485482f89d1 (patch)
tree3d98f3f36866bc70b56c78e06fb2d236860bf83d /AK/URL.h
parentd105747735357b37e968ded71532528426d60763 (diff)
downloadserenity-d6709ac87d75b601806466df29c46485482f89d1.zip
AK: Omit unnecessary function parameter names in URL
This patch removes unnecessary function parameter names in declarations of the URL class. It also changes parameter types from String to StringView where applicable.
Diffstat (limited to 'AK/URL.h')
-rw-r--r--AK/URL.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/AK/URL.h b/AK/URL.h
index 9eed8ab74a..e3fd821a46 100644
--- a/AK/URL.h
+++ b/AK/URL.h
@@ -35,12 +35,12 @@ public:
String fragment() const { return m_fragment; }
u16 port() const { return m_port; }
- void set_protocol(const String& protocol);
- void set_host(const String& host);
- void set_port(const u16 port);
- void set_path(const String& path);
- void set_query(const String& query);
- void set_fragment(const String& fragment);
+ void set_protocol(const String&);
+ void set_host(const String&);
+ void set_port(const u16);
+ void set_path(const String&);
+ void set_query(const String&);
+ void set_fragment(const String&);
String basename() const;
String to_string() const;
@@ -56,11 +56,11 @@ public:
const String& data_mime_type() const { return m_data_mime_type; }
const String& data_payload() const { return m_data_payload; }
- static URL create_with_url_or_path(const String& url_or_path);
+ static URL create_with_url_or_path(const String&);
static URL create_with_file_protocol(const String& path, const String& fragment = {});
static URL create_with_data(const StringView& mime_type, const StringView& payload, bool is_base64 = false);
- static bool protocol_requires_port(const String& protocol);
- static u16 default_port_for_protocol(const String& protocol);
+ static bool protocol_requires_port(const StringView&);
+ static u16 default_port_for_protocol(const StringView&);
bool operator==(const URL& other) const
{