From aaa6bac5ed68f49b4cc23960c706cef7ac8f2ec0 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 15 May 2021 14:07:08 +0100 Subject: [PATCH] Fix Colors.cpp compile warnings .. they hide real issues. --- src/Gui/Colors.cpp | 2 +- src/Gui/Colors.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Gui/Colors.cpp b/src/Gui/Colors.cpp index 32d522bcd..4f2c36110 100644 --- a/src/Gui/Colors.cpp +++ b/src/Gui/Colors.cpp @@ -381,7 +381,7 @@ GCColor::themes() return allThemes; } -ColorEngine::ColorEngine(GlobalContext *gc) : gc(gc), defaultColor(QColor(Qt::white)) +ColorEngine::ColorEngine(GlobalContext *gc) : defaultColor(QColor(Qt::white)), gc(gc) { configChanged(CONFIG_NOTECOLOR); connect(gc, SIGNAL(configChanged(qint32)), this, SLOT(configChanged(qint32))); diff --git a/src/Gui/Colors.h b/src/Gui/Colors.h index 484c501d9..693be0804 100644 --- a/src/Gui/Colors.h +++ b/src/Gui/Colors.h @@ -24,6 +24,8 @@ #include #include #include +#include +#include // A selection of distinct colours, user can adjust also