From eab111a5f5ede64981e4dab94626cb39648fb0ac Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 1 Jul 2016 08:35:08 +0100 Subject: [PATCH] Replaced the old c style declaration of enum's as it was confusing Coverity --- src/osgPlugins/txp/trpage_geom.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/osgPlugins/txp/trpage_geom.h b/src/osgPlugins/txp/trpage_geom.h index fffc3f7e2..963ae78f4 100644 --- a/src/osgPlugins/txp/trpage_geom.h +++ b/src/osgPlugins/txp/trpage_geom.h @@ -540,7 +540,7 @@ public: ~trpgLightAttr(void); // Light Flags - enum + enum LightFlags { // Light flags trpg_Day = 0x0001, @@ -562,33 +562,33 @@ public: trpg_ZBuffer = 0x4000, trpg_FogPunch = 0x8000, trpg_PerformerMask = 0xf000 - } LightFlags; + }; // Light Type - typedef enum + enum LightType { trpg_Raster, trpg_Calligraphic, trpg_RASCAL - } LightType; + }; // Light Directionality - typedef enum + enum LightDirectionality { trpg_Omnidirectional, trpg_Bidirectional, trpg_Unidirectional - } LightDirectionality; + } ; // Light Quality - typedef enum + enum LightQuality { trpg_Off, trpg_Low, trpg_Medium, trpg_High, trpg_Undefined - } LightQuality; + }; // Struct for Performer Lights struct PerformerAttr