1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

Userland: Use Core::ArgsParser's Vector<StringView> API everywhere

...and remove the Vector<String> variant since there are no remaining
users of this API.
This commit is contained in:
Andreas Kling 2021-11-26 22:32:37 +01:00
parent 395ba619d8
commit f1cc3d0fc4
17 changed files with 31 additions and 47 deletions

View file

@ -98,7 +98,7 @@ int main(int argc, char** argv)
return 1;
}
Vector<String> paths;
Vector<StringView> paths;
Core::ArgsParser args_parser;
args_parser.set_general_help("List files in a directory.");
@ -148,7 +148,7 @@ int main(int argc, char** argv)
FileMetadata metadata;
metadata.name = path;
int rc = lstat(path.characters(), &metadata.stat);
int rc = lstat(String(path).characters(), &metadata.stat);
if (rc < 0)
perror("lstat");