1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:27:34 +00:00

LibMain: Rename .arguments to .strings :^)

Before this change, we would need to write arguments.arguments to access
the Span<>, which doesn't feel too pretty.
This commit is contained in:
Pedro Pereira 2021-11-22 21:10:22 +00:00 committed by Andreas Kling
parent 75978d5fff
commit a436f0c668
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ int main(int argc, char** argv)
auto result = serenity_main({ auto result = serenity_main({
.argc = argc, .argc = argc,
.argv = argv, .argv = argv,
.arguments = arguments.span(), .strings = arguments.span(),
}); });
if (result.is_error()) { if (result.is_error()) {
auto error = result.release_error(); auto error = result.release_error();

View file

@ -13,7 +13,7 @@ namespace Main {
struct Arguments { struct Arguments {
int argc {}; int argc {};
char** argv {}; char** argv {};
Span<StringView> arguments; Span<StringView> strings;
}; };
} }