summaryrefslogtreecommitdiff
path: root/Userland/Utilities/tar.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-29 11:28:01 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-29 11:28:01 +0200
commit39369f1da63e8949d00378824714b37aabac7db1 (patch)
tree684be83be103a1ae31edbc4245f96a8d607c2b0f /Userland/Utilities/tar.cpp
parent695cdf7bc054826b1abbf797b7c100fb26dad51c (diff)
downloadserenity-39369f1da63e8949d00378824714b37aabac7db1.zip
Utilities: Use Vector<String> positional arguments in some places
There are more places we can use these, I just picked some that felt like they improved the code.
Diffstat (limited to 'Userland/Utilities/tar.cpp')
-rw-r--r--Userland/Utilities/tar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/tar.cpp b/Userland/Utilities/tar.cpp
index 3f2ea95562..7877787b37 100644
--- a/Userland/Utilities/tar.cpp
+++ b/Userland/Utilities/tar.cpp
@@ -175,7 +175,7 @@ int main(int argc, char** argv)
}
};
- for (const String path : paths) {
+ for (auto const& path : paths) {
if (Core::File::is_directory(path)) {
add_directory(path, add_directory);
} else {