mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 10:47:44 +00:00
LibGfx: Minorly simplify a line of code in ICCProfile with OptionalNone
No behavior change.
This commit is contained in:
parent
b56a145a67
commit
d33eef14a0
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ ErrorOr<Optional<Crypto::Hash::MD5::DigestType>> parse_profile_id(ICCHeader cons
|
||||||
// ICC v4, 7.2.18 Profile ID field
|
// 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."
|
// "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))
|
if (all_bytes_are_zero(header.profile_id))
|
||||||
return Optional<Crypto::Hash::MD5::DigestType> {};
|
return OptionalNone {};
|
||||||
|
|
||||||
Crypto::Hash::MD5::DigestType id;
|
Crypto::Hash::MD5::DigestType id;
|
||||||
static_assert(sizeof(id.data) == sizeof(header.profile_id));
|
static_assert(sizeof(id.data) == sizeof(header.profile_id));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue