mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
AK: Add implicit String -> StringView conversion
And tidy up existing view() users.
This commit is contained in:
parent
decf1afbaa
commit
b55b6cd7fc
Notes:
sideshowbarker
2024-07-19 13:46:32 +09:00
Author: https://github.com/rburchell
Commit: b55b6cd7fc
Pull-request: https://github.com/SerenityOS/serenity/pull/167
6 changed files with 13 additions and 6 deletions
|
@ -312,7 +312,7 @@ int Process::do_exec(String path, Vector<String> arguments, Vector<String> envir
|
|||
if (parts.is_empty())
|
||||
return -ENOENT;
|
||||
|
||||
auto result = VFS::the().open(path.view(), 0, 0, current_directory());
|
||||
auto result = VFS::the().open(path, 0, 0, current_directory());
|
||||
if (result.is_error())
|
||||
return result.error();
|
||||
auto descriptor = result.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue