mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibWeb: Make the URL encoding function a little less copy-happy
This commit is contained in:
parent
d1a9afa7cd
commit
d677d23da1
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue