mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
Userland: Prefer _short_string
over String::from_utf8_short_string
This user-defined literal is a strictly equivalent but shorter alias to `String::from_utf8_short_string`.
This commit is contained in:
parent
66645cdc94
commit
a5edc9cdfc
7 changed files with 8 additions and 8 deletions
|
@ -123,7 +123,7 @@ HelpWindow::HelpWindow(GUI::Window* parent)
|
|||
|
||||
widget->add_sheet(sheet.release_nonnull());
|
||||
window->show();
|
||||
} else if (url.host() == String::from_utf8_short_string("doc"sv)) {
|
||||
} else if (url.host() == "doc"_short_string) {
|
||||
auto entry = LexicalPath::basename(url.serialize_path());
|
||||
m_webview->load(URL::create_with_data("text/html"sv, render(entry)));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue