mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +00:00
LibWeb: Mark URLSearchParams::to_string() as const
This commit is contained in:
parent
42e76d8de9
commit
1b9f5fa28a
Notes:
sideshowbarker
2024-07-17 09:56:35 +09:00
Author: https://github.com/kennethmyhra
Commit: 1b9f5fa28a
Pull-request: https://github.com/SerenityOS/serenity/pull/14595
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg ✅
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