In the attached file, in line 119, the parameter c can be passed as const ref
ColorOKLCh lab_to_lch(ColorOKLab& c) { return ColorOKLCh{c.L, sqrtf(c.a * c.a + c.b * c.b), atan2f(c.b, c.a)}; }
cppcheck 2.5 somehow misses that.
The same is true for the functions
srgb_to_linear_srgb linear_srgb_to_srgb linear_srgb_to_oklab
Log in to post a comment.
In the attached file, in line 119, the parameter c can be passed as const ref
cppcheck 2.5 somehow misses that.
The same is true for the functions
srgb_to_linear_srgb
linear_srgb_to_srgb
linear_srgb_to_oklab