From 77002f17c8b945bcb4c1c6163c3216c3a8a9fb83 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 8 Dec 2020 20:52:57 +0100 Subject: lint --- src/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Utils.cpp') diff --git a/src/Utils.cpp b/src/Utils.cpp index 463c8af3..7fcaf5e2 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -638,8 +638,8 @@ utils::luminance(const QColor &col) qreal lumRgb[3]; for (int i = 0; i < 3; i++) { - qreal v = colRgb[i] / 255.0; - v <= 0.03928 ? lumRgb[i] = v / 12.92 : lumRgb[i] = qPow((v + 0.055) / 1.055, 2.4); + qreal v = colRgb[i] / 255.0; + lumRgb[i] = v <= 0.03928 ? v / 12.92 : qPow((v + 0.055) / 1.055, 2.4); } auto lum = lumRgb[0] * 0.2126 + lumRgb[1] * 0.7152 + lumRgb[2] * 0.0722; -- cgit 1.4.1