mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 01:22:11 +00:00
AK: Add implicit String -> StringView conversion
And tidy up existing view() users.
This commit is contained in:
parent
decf1afbaa
commit
b55b6cd7fc
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