diff options
author | Linus Groh <mail@linusgroh.de> | 2023-02-28 13:50:29 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-28 15:15:36 +0000 |
commit | 51c3967516cdce42d40c26debaec7f6ef949420b (patch) | |
tree | 60292c772c23b3d1c2cdece4ac6cdd28f2152c6c /Userland/Applications | |
parent | d0ba5f2ed7d2fa397328638457083876338b34e3 (diff) | |
download | serenity-51c3967516cdce42d40c26debaec7f6ef949420b.zip |
Everywhere: Use '_{short_,}string' literals more
This mostly updates code what was written before but merged after these
were added.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/ImageViewer/main.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/TextEditor/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/ImageViewer/main.cpp b/Userland/Applications/ImageViewer/main.cpp index 165a76a7c8..cdef258f7f 100644 --- a/Userland/Applications/ImageViewer/main.cpp +++ b/Userland/Applications/ImageViewer/main.cpp @@ -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") })); diff --git a/Userland/Applications/TextEditor/main.cpp b/Userland/Applications/TextEditor/main.cpp index 9fb5fb3fd9..089af88e8f 100644 --- a/Userland/Applications/TextEditor/main.cpp +++ b/Userland/Applications/TextEditor/main.cpp @@ -24,7 +24,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) Config::pledge_domain("TextEditor"); - app->set_config_domain(TRY(String::from_utf8("TextEditor"sv))); + app->set_config_domain(TRY("TextEditor"_string)); auto preview_mode = "auto"sv; char const* file_to_edit = nullptr; |