mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
Ladybird+Userland: Use ByteString for candidate server paths
We've adopted a stance that paths should be ByteStrings rather than UTF-8 strings, so apply that to the Ladybird helpers.
This commit is contained in:
parent
1e0dd9aa8c
commit
0a55749a39
10 changed files with 30 additions and 31 deletions
|
@ -24,7 +24,7 @@ static ErrorOr<pid_t> launch_process(StringView application, ReadonlySpan<char c
|
|||
|
||||
ErrorOr<pid_t> result = -1;
|
||||
for (auto const& path : paths) {
|
||||
auto path_view = path.bytes_as_string_view();
|
||||
auto path_view = path.view();
|
||||
result = Core::Process::spawn(path_view, arguments, {}, Core::Process::KeepAsChild::Yes);
|
||||
if (!result.is_error())
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue