diff --git a/Userland/Libraries/LibCrypto/Hash/HashManager.h b/Userland/Libraries/LibCrypto/Hash/HashManager.h index 519dfe1f53a..522565a8b15 100644 --- a/Userland/Libraries/LibCrypto/Hash/HashManager.h +++ b/Userland/Libraries/LibCrypto/Hash/HashManager.h @@ -74,7 +74,7 @@ struct MultiHashDigestVariant { } using DigestVariant = Variant; - DigestVariant m_digest { Empty {} }; + DigestVariant m_digest {}; }; class Manager final : public HashFunction<0, MultiHashDigestVariant> { @@ -198,7 +198,7 @@ public: private: using AlgorithmVariant = Variant; - AlgorithmVariant m_algorithm { Empty {} }; + AlgorithmVariant m_algorithm {}; HashKind m_kind { HashKind::None }; ByteBuffer m_pre_init_buffer; }; diff --git a/Userland/Libraries/LibJS/AST.h b/Userland/Libraries/LibJS/AST.h index 2b3557ca497..22d55da347a 100644 --- a/Userland/Libraries/LibJS/AST.h +++ b/Userland/Libraries/LibJS/AST.h @@ -317,8 +317,8 @@ struct BindingPattern : RefCounted { // This covers both BindingProperty and BindingElement, hence the more generic name struct BindingEntry { // If this entry represents a BindingElement, then name will be Empty - Variant, NonnullRefPtr, Empty> name { Empty {} }; - Variant, NonnullRefPtr, Empty> alias { Empty {} }; + Variant, NonnullRefPtr, Empty> name {}; + Variant, NonnullRefPtr, Empty> alias {}; RefPtr initializer {}; bool is_rest { false }; diff --git a/Userland/Libraries/LibJS/Parser.cpp b/Userland/Libraries/LibJS/Parser.cpp index 99b77add9bf..499208907e4 100644 --- a/Userland/Libraries/LibJS/Parser.cpp +++ b/Userland/Libraries/LibJS/Parser.cpp @@ -2180,7 +2180,7 @@ NonnullRefPtr Parser::parse_variable_declaration(bool for_l NonnullRefPtrVector declarations; for (;;) { - Variant, NonnullRefPtr, Empty> target { Empty() }; + Variant, NonnullRefPtr, Empty> target {}; if (match_identifier()) { auto identifier_start = push_start(); auto name = consume_identifier().value(); diff --git a/Userland/Libraries/LibJS/Token.h b/Userland/Libraries/LibJS/Token.h index fe69804e29f..2e74847de18 100644 --- a/Userland/Libraries/LibJS/Token.h +++ b/Userland/Libraries/LibJS/Token.h @@ -239,7 +239,7 @@ private: String m_message; StringView m_trivia; StringView m_original_value; - Variant m_value { Empty {} }; + Variant m_value {}; StringView m_filename; size_t m_line_number { 0 }; size_t m_line_column { 0 }; diff --git a/Userland/Libraries/LibRegex/RegexParser.cpp b/Userland/Libraries/LibRegex/RegexParser.cpp index 55f04c1ca1e..c60bcbaea6f 100644 --- a/Userland/Libraries/LibRegex/RegexParser.cpp +++ b/Userland/Libraries/LibRegex/RegexParser.cpp @@ -1567,7 +1567,7 @@ bool ECMA262Parser::parse_atom_escape(ByteCode& stack, size_t& match_length_mini } if (unicode) { - PropertyEscape property { Empty {} }; + PropertyEscape property {}; bool negated = false; if (parse_unicode_property_escape(property, negated)) { @@ -1847,7 +1847,7 @@ bool ECMA262Parser::parse_nonempty_class_ranges(Vector& if (try_skip("-")) return { CharClassRangeElement { .code_point = '-', .is_character_class = false } }; - PropertyEscape property { Empty {} }; + PropertyEscape property {}; bool negated = false; if (parse_unicode_property_escape(property, negated)) { return property.visit( diff --git a/Userland/Libraries/LibTLS/TLSv12.h b/Userland/Libraries/LibTLS/TLSv12.h index 1a84f0713ef..77b80b6a8e2 100644 --- a/Userland/Libraries/LibTLS/TLSv12.h +++ b/Userland/Libraries/LibTLS/TLSv12.h @@ -521,8 +521,8 @@ private: Empty, Crypto::Cipher::AESCipher::CBCMode, Crypto::Cipher::AESCipher::GCMMode>; - CipherVariant m_cipher_local { Empty {} }; - CipherVariant m_cipher_remote { Empty {} }; + CipherVariant m_cipher_local {}; + CipherVariant m_cipher_remote {}; bool m_has_scheduled_write_flush { false }; bool m_has_scheduled_app_data_flush { false }; diff --git a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.cpp b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.cpp index d923987bdc7..84bf6221141 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/AbstractMachine.cpp @@ -381,7 +381,7 @@ Optional AbstractMachine::allocate_all_initial_phase(Module }); module.for_each_section_of_type([&](ExportSection const& section) { for (auto& entry : section.entries()) { - Variant address { Empty {} }; + Variant address {}; entry.description().visit( [&](FunctionIndex const& index) { if (module_instance.functions().size() > index.value()) diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h b/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h index 19077fb367e..a4bc5e7a4ca 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h @@ -352,7 +352,7 @@ private: // Type::Comment (comment data), Type::StartTag and Type::EndTag (tag name) String m_string_data; - Variant, OwnPtr>> m_data { Empty {} }; + Variant, OwnPtr>> m_data {}; Position m_start_position; Position m_end_position;