mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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:
parent
75978d5fff
commit
a436f0c668
Notes:
sideshowbarker
2024-07-18 00:52:12 +09:00
Author: https://github.com/pmhpereira Commit: https://github.com/SerenityOS/serenity/commit/a436f0c6681 Pull-request: https://github.com/SerenityOS/serenity/pull/11015
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ int main(int argc, char** argv)
|
|||
auto result = serenity_main({
|
||||
.argc = argc,
|
||||
.argv = argv,
|
||||
.arguments = arguments.span(),
|
||||
.strings = arguments.span(),
|
||||
});
|
||||
if (result.is_error()) {
|
||||
auto error = result.release_error();
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Main {
|
|||
struct Arguments {
|
||||
int argc {};
|
||||
char** argv {};
|
||||
Span<StringView> arguments;
|
||||
Span<StringView> strings;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue