LibWeb: Reduce SelectItemOption struct from 40 to 32 bytes

This commit is contained in:
Pavel Shliak
2024-11-11 14:22:44 +04:00
committed by Andreas Kling
parent 566870b2bd
commit 1bdc41faa1
3 changed files with 5 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ ErrorOr<Web::HTML::SelectItemOption> IPC::decode(Decoder& decoder)
auto value = TRY(decoder.decode<String>());
auto selected = TRY(decoder.decode<bool>());
auto disabled = TRY(decoder.decode<bool>());
return Web::HTML::SelectItemOption { id, move(label), move(value), selected, disabled };
return Web::HTML::SelectItemOption { id, selected, disabled, {}, move(label), move(value) };
}
template<>