1
Fork 0
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:
Robin Burchell 2019-06-02 12:19:21 +02:00 committed by Andreas Kling
parent decf1afbaa
commit b55b6cd7fc
6 changed files with 13 additions and 6 deletions

View file

@ -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();