From b072723595e729eed79199f246439ffed62cdbb5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 May 2015 02:09:15 +0300 Subject: Convert GradientType enum into strong typed enum. --- src/enums/gui/gradienttype.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/enums') diff --git a/src/enums/gui/gradienttype.h b/src/enums/gui/gradienttype.h index 9ff14b4b2..fb1042aa5 100644 --- a/src/enums/gui/gradienttype.h +++ b/src/enums/gui/gradienttype.h @@ -24,17 +24,15 @@ #ifndef ENUMS_GUI_GRADIENTTYPE_H #define ENUMS_GUI_GRADIENTTYPE_H -namespace GradientType -{ - enum T - { - STATIC = 0, - PULSE, - SPECTRUM, - RAINBOW - }; -} // namespace GradientType +#include "enums/simpletypes/enumdefines.h" -typedef GradientType::T GradientTypeT; +enumStart(GradientType) +{ + STATIC = 0, + PULSE, + SPECTRUM, + RAINBOW +} +enumEnd(GradientType); #endif // ENUMS_GUI_GRADIENTTYPE_H -- cgit v1.2.3-70-g09d2