mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
Everywhere: Use '_{short_,}string' literals more
This mostly updates code what was written before but merged after these were added.
This commit is contained in:
parent
d0ba5f2ed7
commit
51c3967516
15 changed files with 94 additions and 95 deletions
|
@ -43,7 +43,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
Config::pledge_domain("ImageViewer");
|
||||
|
||||
app->set_config_domain(TRY(String::from_utf8("ImageViewer"sv)));
|
||||
app->set_config_domain(TRY("ImageViewer"_string));
|
||||
|
||||
TRY(Desktop::Launcher::add_allowed_handler_with_any_url("/bin/ImageViewer"));
|
||||
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_scheme("/usr/share/man/man1/ImageViewer.md") }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue