mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
Libraries: Use AK::Variant default initialization where appropriate
This commit is contained in:
parent
98a0f9c0bd
commit
32e98d0924
8 changed files with 12 additions and 12 deletions
|
@ -74,7 +74,7 @@ struct MultiHashDigestVariant {
|
|||
}
|
||||
|
||||
using DigestVariant = Variant<Empty, MD5::DigestType, SHA1::DigestType, SHA256::DigestType, SHA384::DigestType, SHA512::DigestType>;
|
||||
DigestVariant m_digest { Empty {} };
|
||||
DigestVariant m_digest {};
|
||||
};
|
||||
|
||||
class Manager final : public HashFunction<0, MultiHashDigestVariant> {
|
||||
|
@ -198,7 +198,7 @@ public:
|
|||
|
||||
private:
|
||||
using AlgorithmVariant = Variant<Empty, MD5, SHA1, SHA256, SHA384, SHA512>;
|
||||
AlgorithmVariant m_algorithm { Empty {} };
|
||||
AlgorithmVariant m_algorithm {};
|
||||
HashKind m_kind { HashKind::None };
|
||||
ByteBuffer m_pre_init_buffer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue