mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Libraries: Use AK::Variant default initialization where appropriate
This commit is contained in:
parent
98a0f9c0bd
commit
32e98d0924
Notes:
sideshowbarker
2024-07-18 03:35:49 +09:00
Author: https://github.com/BenWiederhake
Commit: 32e98d0924
Pull-request: https://github.com/SerenityOS/serenity/pull/10154
Reviewed-by: https://github.com/alimpfard
8 changed files with 12 additions and 12 deletions
|
@ -2180,7 +2180,7 @@ NonnullRefPtr<VariableDeclaration> Parser::parse_variable_declaration(bool for_l
|
|||
|
||||
NonnullRefPtrVector<VariableDeclarator> declarations;
|
||||
for (;;) {
|
||||
Variant<NonnullRefPtr<Identifier>, NonnullRefPtr<BindingPattern>, Empty> target { Empty() };
|
||||
Variant<NonnullRefPtr<Identifier>, NonnullRefPtr<BindingPattern>, Empty> target {};
|
||||
if (match_identifier()) {
|
||||
auto identifier_start = push_start();
|
||||
auto name = consume_identifier().value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue