Code

change to c++ style casts in Effect::New
authorjohanengelen <johanengelen@users.sourceforge.net>
Wed, 9 Apr 2008 20:50:57 +0000 (20:50 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Wed, 9 Apr 2008 20:50:57 +0000 (20:50 +0000)
src/live_effects/effect.cpp

index d8a48535a15c2568647b1de831fc66f99a8ed6b8..3c8ad8d507697e8936d747424132eb74229aaa26 100644 (file)
@@ -74,40 +74,39 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
     Effect* neweffect = NULL;
     switch (lpenr) {
         case PATTERN_ALONG_PATH:
-            neweffect = (Effect*) new LPEPatternAlongPath(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPEPatternAlongPath(lpeobj) );
             break;
         case BEND_PATH:
-            neweffect = (Effect*) new LPEBendPath(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPEBendPath(lpeobj) );
             break;
-//here!!
         case SKETCH:
-            neweffect = (Effect*) new LPESketch(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPESketch(lpeobj) );
             break;
         case VONKOCH:
-            neweffect = (Effect*) new LPEVonKoch(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPEVonKoch(lpeobj) );
             break;
         case KNOT:
-            neweffect = (Effect*) new LPEKnot(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPEKnot(lpeobj) );
             break;
 #ifdef LPE_ENABLE_TEST_EFFECTS
             case SLANT:
-            neweffect = (Effect*) new LPESlant(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPESlant(lpeobj) );
             break;
         case DOEFFECTSTACK_TEST:
-            neweffect = (Effect*) new LPEdoEffectStackTest(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPEdoEffectStackTest(lpeobj) );
             break;
 #endif
         case GEARS:
-            neweffect = (Effect*) new LPEGears(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPEGears(lpeobj) );
             break;
         case CURVE_STITCH:
-            neweffect = (Effect*) new LPECurveStitch(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPECurveStitch(lpeobj) );
             break;
         case CIRCLE_WITH_RADIUS:
-            neweffect = (Effect*) new LPECircleWithRadius(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPECircleWithRadius(lpeobj) );
             break;
         case PERSPECTIVE_PATH:
-            neweffect = (Effect*) new LPEPerspectivePath(lpeobj);
+            neweffect = static_cast<Effect*> ( new LPEPerspectivePath(lpeobj) );
             break;
         default:
             g_warning("LivePathEffect::Effect::New   called with invalid patheffect type (%d)", lpenr);