mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 17:02:56 +00:00
TestICCProfile: Don't capture sRGB by value
No behavior change.
This commit is contained in:
parent
923027b1df
commit
cd81b3e2fa
Notes:
sideshowbarker
2024-07-16 20:49:00 +09:00
Author: https://github.com/nico
Commit: cd81b3e2fa
Pull-request: https://github.com/SerenityOS/serenity/pull/18582
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ TEST_CASE(to_pcs)
|
|||
EXPECT_EQ(sRGB_curve.evaluate(0.f), 0.f);
|
||||
EXPECT_EQ(sRGB_curve.evaluate(1.f), 1.f);
|
||||
|
||||
auto xyz_from_sRGB = [sRGB](u8 r, u8 g, u8 b) {
|
||||
auto xyz_from_sRGB = [&sRGB](u8 r, u8 g, u8 b) {
|
||||
u8 rgb[3] = { r, g, b };
|
||||
return MUST(sRGB->to_pcs(rgb));
|
||||
};
|
||||
|
@ -157,7 +157,7 @@ TEST_CASE(to_pcs)
|
|||
TEST_CASE(to_lab)
|
||||
{
|
||||
auto sRGB = MUST(Gfx::ICC::sRGB());
|
||||
auto lab_from_sRGB = [sRGB](u8 r, u8 g, u8 b) {
|
||||
auto lab_from_sRGB = [&sRGB](u8 r, u8 g, u8 b) {
|
||||
u8 rgb[3] = { r, g, b };
|
||||
return MUST(sRGB->to_lab(rgb));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue