Code

cast for EnumParam
authorcilix42 <cilix42@users.sourceforge.net>
Mon, 18 Aug 2008 00:32:01 +0000 (00:32 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Mon, 18 Aug 2008 00:32:01 +0000 (00:32 +0000)
src/live_effects/parameter/enum.h

index aec256f11cca141fab76134c3432d5ea2ed3fcd0..05f3bdd57af410d71a26b41aaec9396a89c54a10 100644 (file)
@@ -71,6 +71,9 @@ public:
         return value;
     }
 
+    inline operator E()
+        { return value; };
+
     void param_set_default() {
         param_set_value(defvalue);
     }