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:
parent
695cdf7bc0
commit
39369f1da6
Notes:
sideshowbarker
2024-07-18 18:54:56 +09:00
Author: https://github.com/awesomekling
Commit: 39369f1da6
6 changed files with 15 additions and 17 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue