From dc150ce0eb59ee6e82b7b9c3b12cdae265be0c4c Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 24 Jul 2019 17:09:37 +0200 Subject: [PATCH] UI: Pass QColor as reference --- UI/qt-display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/qt-display.cpp b/UI/qt-display.cpp index fbaa1339d..988068a6d 100644 --- a/UI/qt-display.cpp +++ b/UI/qt-display.cpp @@ -6,7 +6,7 @@ #include #include -static inline long long color_to_int(QColor color) +static inline long long color_to_int(const QColor &color) { auto shift = [&](unsigned val, int shift) { return ((val & 0xff) << shift);