mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:58:12 +00:00
Ladybird/Qt: Replace the QString-from-AK helpers with a single method
There's no need for 2 overloads for String and DeprecatedString, we can just use a StringView. This also avoids some cases of needlessly allocating a DeprecatedString from a StringView when calling this method.
This commit is contained in:
parent
4d5d282e6a
commit
1aedb0ae5a
8 changed files with 21 additions and 27 deletions
|
@ -37,7 +37,7 @@ LocationEdit::LocationEdit(QWidget* parent)
|
|||
auto query = MUST(ak_string_from_qstring(text()));
|
||||
|
||||
if (auto url = WebView::sanitize_url(query, search_engine_url); url.has_value())
|
||||
setText(qstring_from_ak_deprecated_string(url->serialize()));
|
||||
setText(qstring_from_ak_string(url->serialize()));
|
||||
});
|
||||
|
||||
connect(this, &QLineEdit::textEdited, [this] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue