mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
DynamicLoader: Use string view literal to remove a allocation on startup
The ""sv operator switches a const char* to String conversion into just a StringView literal.
This commit is contained in:
parent
b538e15548
commit
1498dcd9e1
Notes:
sideshowbarker
2024-07-18 11:08:33 +09:00
Author: https://github.com/bgianfo
Commit: 1498dcd9e1
Pull-request: https://github.com/SerenityOS/serenity/pull/8381
Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ void _start(int argc, char** argv, char** envp)
|
|||
}
|
||||
}
|
||||
|
||||
if (main_program_name == "/usr/lib/Loader.so") {
|
||||
if (main_program_name == "/usr/lib/Loader.so"sv) {
|
||||
// We've been invoked directly as an executable rather than as the
|
||||
// ELF interpreter for some other binary. In the future we may want
|
||||
// to support launching a program directly from the dynamic loader
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue