mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
AK: Port URL::m_query from DeprecatedString to String
This commit is contained in:
parent
55a01e72ca
commit
21fe86d235
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/shannonbooth
Commit: 21fe86d235
Pull-request: https://github.com/SerenityOS/serenity/pull/20510
Reviewed-by: https://github.com/ADKaster ✅
14 changed files with 63 additions and 75 deletions
|
@ -32,10 +32,11 @@ DeprecatedString ConnectionInfo::resource_name() const
|
|||
// The path component
|
||||
builder.append(path);
|
||||
// "?" if the query component is non-empty
|
||||
if (!m_url.query().is_empty())
|
||||
if (m_url.query().has_value() && !m_url.query()->is_empty()) {
|
||||
builder.append('?');
|
||||
// the query component
|
||||
builder.append(m_url.query());
|
||||
// the query component
|
||||
builder.append(*m_url.query());
|
||||
}
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue