commit 6a57f216b320c59e667d76796557896cb1cf837c
Author: Koji Yokota <[email protected]>
Date:   Thu Oct 1 16:49:51 2026 +0900

    Make variable types explicit and const
---
 src/frontends/qt/ColorCache.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/ColorCache.cpp b/src/frontends/qt/ColorCache.cpp
index f4c86662d9..aa15ada994 100644
--- a/src/frontends/qt/ColorCache.cpp
+++ b/src/frontends/qt/ColorCache.cpp
@@ -258,8 +258,8 @@ const QColor qcolorOverlay(const QColor &fg, const QColor 
&bg)
 {
        int red, green, blue, alpha;
 
-       auto fg_weight = fg.alphaF();
-       auto bg_weight = 1 - fg.alphaF();
+       float const fg_weight = fg.alphaF();
+       float const bg_weight = 1 - fg.alphaF();
 
        red   = std::round((fg_weight*fg.redF()   + bg_weight*bg.redF()  ) * 
255);
        green = std::round((fg_weight*fg.greenF() + bg_weight*bg.greenF()) * 
255);
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to