From eac11683a93338a7254544a598882f98b8e5d8c1 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 14 May 2024 23:00:05 +0200 Subject: [PATCH] cleanup: remove enum typedef in color.h Just call the enum that way and be done with it. Signed-off-by: Berthold Stoeger --- core/color.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/color.h b/core/color.h index 3e9999e4e..cff6be72f 100644 --- a/core/color.h +++ b/core/color.h @@ -81,7 +81,7 @@ static inline QColor makeColor(double r, double g, double b, double a = 1.0) #define VELOCITY_COLORS_START_IDX VELO_STABLE #define VELOCITY_COLORS 5 -typedef enum { +enum color_index_t { /* SAC colors. Order is important, the SAC_COLORS_START_IDX define above. */ SAC_1, SAC_2, @@ -145,7 +145,7 @@ typedef enum { CALC_CEILING_DEEP, TISSUE_PERCENTAGE, DURATION_LINE -} color_index_t; +}; QColor getColor(const color_index_t i, bool isGrayscale = false); QColor getSacColor(int sac, int diveSac);