1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

LibGfx: Minorly simplify a line of code in ICCProfile with OptionalNone

No behavior change.
This commit is contained in:
Nico Weber 2023-01-21 18:30:01 -05:00 committed by Tim Flynn
parent b56a145a67
commit d33eef14a0

View file

@ -365,7 +365,7 @@ ErrorOr<Optional<Crypto::Hash::MD5::DigestType>> parse_profile_id(ICCHeader cons
// ICC v4, 7.2.18 Profile ID field
// "A profile ID field value of zero (00h) shall indicate that a profile ID has not been calculated."
if (all_bytes_are_zero(header.profile_id))
return Optional<Crypto::Hash::MD5::DigestType> {};
return OptionalNone {};
Crypto::Hash::MD5::DigestType id;
static_assert(sizeof(id.data) == sizeof(header.profile_id));