From f1cc3d0fc48af5247278101f863d6416f763733e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 26 Nov 2021 22:32:37 +0100 Subject: Userland: Use Core::ArgsParser's Vector API everywhere ...and remove the Vector variant since there are no remaining users of this API. --- Userland/Utilities/ls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Utilities/ls.cpp') diff --git a/Userland/Utilities/ls.cpp b/Userland/Utilities/ls.cpp index 8704f5caf3..39614ed889 100644 --- a/Userland/Utilities/ls.cpp +++ b/Userland/Utilities/ls.cpp @@ -98,7 +98,7 @@ int main(int argc, char** argv) return 1; } - Vector paths; + Vector 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"); -- cgit v1.2.3