1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00: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
6 changed files with 15 additions and 17 deletions

View file

@ -25,7 +25,7 @@ static bool decompress_file(Buffered<Core::InputFileStream>& input_stream, Buffe
int main(int argc, char** argv)
{
Vector<const char*> filenames;
Vector<String> filenames;
bool keep_input_files { false };
bool write_to_stdout { false };
@ -38,7 +38,7 @@ int main(int argc, char** argv)
if (write_to_stdout)
keep_input_files = true;
for (String filename : filenames) {
for (auto filename : filenames) {
if (!filename.ends_with(".gz"))
filename = String::formatted("{}.gz", filename);