From 9961769bcfd48f4120aa221154ce9e85eec2b78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Sat, 5 Oct 2019 11:53:13 -0300 Subject: [PATCH] QGCPalette: Add missing const in SETNAME function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/QGCPalette.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QGCPalette.h b/src/QGCPalette.h index 8c70d05aa..4b8a96324 100644 --- a/src/QGCPalette.h +++ b/src/QGCPalette.h @@ -40,7 +40,7 @@ c << _colorInfoMap[Dark][ColorGroupDisabled][QStringLiteral(#NAME)].name(QColor::HexRgb); \ return c; \ } \ - void SETNAME(QColor& color) { _colorInfoMap[_theme][_colorGroupEnabled ? ColorGroupEnabled : ColorGroupDisabled][QStringLiteral(#NAME)] = color; _signalPaletteChangeToAll(); } + void SETNAME(const QColor& color) { _colorInfoMap[_theme][_colorGroupEnabled ? ColorGroupEnabled : ColorGroupDisabled][QStringLiteral(#NAME)] = color; _signalPaletteChangeToAll(); } /*! QGCPalette is used in QML ui to expose color properties for the QGC palette. There are two -- 2.22.0