1
Fork 0
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:
Kenneth Myhra 2022-07-15 22:58:30 +02:00 committed by Linus Groh
parent 42e76d8de9
commit 1b9f5fa28a
2 changed files with 2 additions and 2 deletions

View file

@ -234,7 +234,7 @@ void URLSearchParams::sort()
update(); update();
} }
String URLSearchParams::to_string() String URLSearchParams::to_string() const
{ {
// return the serialization of thiss list. // return the serialization of thiss list.
return url_encode(m_list, AK::URL::PercentEncodeSet::ApplicationXWWWFormUrlencoded); return url_encode(m_list, AK::URL::PercentEncodeSet::ApplicationXWWWFormUrlencoded);

View file

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