1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

LibWeb: Make the URL encoding function a little less copy-happy

This commit is contained in:
Andreas Kling 2020-05-05 12:37:11 +02:00
parent d1a9afa7cd
commit d677d23da1
2 changed files with 4 additions and 4 deletions

View file

@ -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) {