summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-01-06 13:40:10 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-06 20:26:14 +0100
commit31af741c667a51a1a6a39b3a20bf2d47311c2750 (patch)
tree44140010320bb807ae168044b945abd258708eb1 /Userland/Libraries
parent8750e1d080ca9e1807e175f085d3f332a41c4739 (diff)
downloadserenity-31af741c667a51a1a6a39b3a20bf2d47311c2750.zip
LibGfx: Rename variable in parse_profile_id() to match spec better
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibGfx/ICCProfile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGfx/ICCProfile.cpp b/Userland/Libraries/LibGfx/ICCProfile.cpp
index c56e155833..294a57fb6b 100644
--- a/Userland/Libraries/LibGfx/ICCProfile.cpp
+++ b/Userland/Libraries/LibGfx/ICCProfile.cpp
@@ -251,13 +251,13 @@ Optional<Crypto::Hash::MD5::DigestType> parse_profile_id(ICCHeader const& header
if (all_bytes_are_zero(header.profile_id))
return {};
- Crypto::Hash::MD5::DigestType md5;
- static_assert(sizeof(md5.data) == sizeof(header.profile_id));
- memcpy(md5.data, header.profile_id, sizeof(md5.data));
+ Crypto::Hash::MD5::DigestType id;
+ static_assert(sizeof(id.data) == sizeof(header.profile_id));
+ memcpy(id.data, header.profile_id, sizeof(id.data));
// FIXME: Consider comparing read id with compute_id() result and failing if they aren't equal.
- return md5;
+ return id;
}
ErrorOr<void> parse_reserved(ICCHeader const& header)