diff options
author | Nico Weber <thakis@chromium.org> | 2023-01-28 21:39:51 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-29 11:35:37 +0000 |
commit | f63ec8de68d9e34bffdd3d24d7ede7a0a886ecda (patch) | |
tree | 89850815f0c47dad02ba693adf04ef87c28d5080 | |
parent | 78b503946c5ca8ba9f4bf1fa4d41abcb131902fa (diff) | |
download | serenity-f63ec8de68d9e34bffdd3d24d7ede7a0a886ecda.zip |
LibGfx: Use auto more in ICC code
-rw-r--r-- | Userland/Libraries/LibGfx/ICC/TagTypes.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGfx/ICC/TagTypes.cpp b/Userland/Libraries/LibGfx/ICC/TagTypes.cpp index 0c94bc4d8b..fd32999240 100644 --- a/Userland/Libraries/LibGfx/ICC/TagTypes.cpp +++ b/Userland/Libraries/LibGfx/ICC/TagTypes.cpp @@ -70,7 +70,7 @@ ErrorOr<NonnullRefPtr<CurveTagData>> CurveTagData::from_bytes(ReadonlyBytes byte if (bytes.size() < 3 * sizeof(u32) + count * sizeof(u16)) return Error::from_string_literal("ICC::Profile: curveType has not enough data for curve points"); - BigEndian<u16> const* raw_values = bit_cast<BigEndian<u16> const*>(bytes.data() + 12); + auto* raw_values = bit_cast<BigEndian<u16> const*>(bytes.data() + 12); Vector<u16> values; TRY(values.try_resize(count)); @@ -286,7 +286,7 @@ ErrorOr<NonnullRefPtr<ParametricCurveTagData>> ParametricCurveTagData::from_byte if (bytes.size() < 2 * sizeof(u32) + 2 * sizeof(u16) + count * sizeof(s15Fixed16Number)) return Error::from_string_literal("ICC::Profile: parametricCurveType has not enough data for parameters"); - BigEndian<s15Fixed16Number> const* raw_parameters = bit_cast<BigEndian<s15Fixed16Number> const*>(bytes.data() + 12); + auto* raw_parameters = bit_cast<BigEndian<s15Fixed16Number> const*>(bytes.data() + 12); Array<S15Fixed16, 7> parameters; parameters.fill(0); for (unsigned i = 0; i < count; ++i) @@ -308,7 +308,7 @@ ErrorOr<NonnullRefPtr<S15Fixed16ArrayTagData>> S15Fixed16ArrayTagData::from_byte return Error::from_string_literal("ICC::Profile: s15Fixed16ArrayType has wrong size"); size_t count = byte_size / sizeof(s15Fixed16Number); - BigEndian<s15Fixed16Number> const* raw_values = bit_cast<BigEndian<s15Fixed16Number> const*>(bytes.data() + 8); + auto* raw_values = bit_cast<BigEndian<s15Fixed16Number> const*>(bytes.data() + 8); Vector<S15Fixed16, 9> values; TRY(values.try_resize(count)); for (size_t i = 0; i < count; ++i) @@ -489,7 +489,7 @@ ErrorOr<NonnullRefPtr<XYZTagData>> XYZTagData::from_bytes(ReadonlyBytes bytes, u return Error::from_string_literal("ICC::Profile: XYZType has wrong size"); size_t xyz_count = byte_size / sizeof(XYZNumber); - XYZNumber const* raw_xyzs = bit_cast<XYZNumber const*>(bytes.data() + 8); + auto* raw_xyzs = bit_cast<XYZNumber const*>(bytes.data() + 8); Vector<XYZ, 1> xyzs; TRY(xyzs.try_resize(xyz_count)); for (size_t i = 0; i < xyz_count; ++i) |