diff options
-rw-r--r-- | Libraries/LibWeb/URLEncoder.cpp | 4 | ||||
-rw-r--r-- | Libraries/LibWeb/URLEncoder.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibWeb/URLEncoder.cpp b/Libraries/LibWeb/URLEncoder.cpp index a3bd5fdd00..e760082fdc 100644 --- a/Libraries/LibWeb/URLEncoder.cpp +++ b/Libraries/LibWeb/URLEncoder.cpp @@ -29,7 +29,7 @@ namespace Web { -String url_encode(StringView view) +String url_encode(const StringView& view) { StringBuilder builder; @@ -46,7 +46,7 @@ String url_encode(StringView view) return builder.to_string(); } -String url_encode(Vector<URLQueryParam> pairs) +String url_encode(const Vector<URLQueryParam>& pairs) { StringBuilder builder; for (size_t i = 0; i < pairs.size(); ++i) { diff --git a/Libraries/LibWeb/URLEncoder.h b/Libraries/LibWeb/URLEncoder.h index 5b8cfa01be..61cb8b34dd 100644 --- a/Libraries/LibWeb/URLEncoder.h +++ b/Libraries/LibWeb/URLEncoder.h @@ -36,8 +36,8 @@ struct URLQueryParam { String value; }; -String url_encode(StringView); -String url_encode(Vector<URLQueryParam>); +String url_encode(const StringView&); +String url_encode(const Vector<URLQueryParam>&); } |