mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:37:43 +00:00
LibWeb: Mark URLSearchParams::to_string() as const
This commit is contained in:
parent
42e76d8de9
commit
1b9f5fa28a
2 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ void URLSearchParams::sort()
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
String URLSearchParams::to_string()
|
String URLSearchParams::to_string() const
|
||||||
{
|
{
|
||||||
// return the serialization of this’s list.
|
// return the serialization of this’s list.
|
||||||
return url_encode(m_list, AK::URL::PercentEncodeSet::ApplicationXWWWFormUrlencoded);
|
return url_encode(m_list, AK::URL::PercentEncodeSet::ApplicationXWWWFormUrlencoded);
|
||||||
|
|
|
@ -41,7 +41,7 @@ public:
|
||||||
|
|
||||||
void sort();
|
void sort();
|
||||||
|
|
||||||
String to_string();
|
String to_string() const;
|
||||||
|
|
||||||
using ForEachCallback = Function<JS::ThrowCompletionOr<void>(String const&, String const&)>;
|
using ForEachCallback = Function<JS::ThrowCompletionOr<void>(String const&, String const&)>;
|
||||||
JS::ThrowCompletionOr<void> for_each(ForEachCallback);
|
JS::ThrowCompletionOr<void> for_each(ForEachCallback);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue