From 5718506b1dd967d27f25eb84e9a6438ba7e3de44 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 29 Oct 2024 14:02:35 +1000 Subject: [PATCH] colour: unpack colour by ref to work around clang warning --- cruft/util/colour.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cruft/util/colour.cpp b/cruft/util/colour.cpp index 22d4df07..bd3fd5c4 100644 --- a/cruft/util/colour.cpp +++ b/cruft/util/colour.cpp @@ -86,7 +86,7 @@ exponentiate (float const u) static cruft::vector3f sRGB_to_XYZ (cruft::vector3f sRGB) { - auto const [r_, g_, b_] = sRGB; + auto const &[r_, g_, b_] = sRGB; float const r = linearise (r_); float const g = linearise (g_);