1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

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.
This commit is contained in:
Andreas Kling 2021-04-29 11:28:01 +02:00
parent 695cdf7bc0
commit 39369f1da6
Notes: sideshowbarker 2024-07-18 18:54:56 +09:00
6 changed files with 15 additions and 17 deletions

View file

@ -16,7 +16,7 @@
int main(int argc, char** argv)
{
const char* zip_path;
Vector<const char*> source_paths;
Vector<String> source_paths;
bool recurse = false;
bool force = false;
@ -104,7 +104,7 @@ int main(int argc, char** argv)
}
};
for (const String source_path : source_paths) {
for (auto const& source_path : source_paths) {
if (Core::File::is_directory(source_path)) {
add_directory(source_path, add_directory);
} else {