From aa107ef2d68226ed459225e83d4539de263292fd Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 5 Jan 2023 15:10:30 -0500 Subject: [PATCH] LibGfx: Add quotes and reflow for glanceability --- Userland/Libraries/LibGfx/ICCProfile.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Userland/Libraries/LibGfx/ICCProfile.cpp b/Userland/Libraries/LibGfx/ICCProfile.cpp index 929b258fee..19f0f60f7e 100644 --- a/Userland/Libraries/LibGfx/ICCProfile.cpp +++ b/Userland/Libraries/LibGfx/ICCProfile.cpp @@ -392,12 +392,13 @@ ErrorOr> Profile::try_load_from_externally_owned_memory(R Crypto::Hash::MD5::DigestType Profile::compute_id(ReadonlyBytes bytes) { // ICC v4, 7.2.18 Profile ID field - // The Profile ID shall be calculated using the MD5 fingerprinting method as defined in Internet RFC 1321. - // The entire profile, whose length is given by the size field in the header, - // with the profile flags field (bytes 44 to 47, see 7.2.11), - // rendering intent field (bytes 64 to 67, see 7.2.15), - // and profile ID field (bytes 84 to 99) in the profile header - // temporarily set to zeros (00h), shall be used to calculate the ID. + // "The Profile ID shall be calculated using the MD5 fingerprinting method as defined in Internet RFC 1321. + // The entire profile, whose length is given by the size field in the header, with the + // profile flags field (bytes 44 to 47, see 7.2.11), + // rendering intent field (bytes 64 to 67, see 7.2.15), + // and profile ID field (bytes 84 to 99) + // in the profile header temporarily set to zeros (00h), + // shall be used to calculate the ID." const u8 zero[16] = {}; Crypto::Hash::MD5 md5; md5.update(bytes.slice(0, 44));