From 92fe3142613d000eff89db8a983b3b18b14eee79 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Wed, 9 Apr 2008 20:50:57 +0000 Subject: [PATCH] change to c++ style casts in Effect::New --- src/live_effects/effect.cpp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index d8a48535a..3c8ad8d50 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -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 ( new LPEPatternAlongPath(lpeobj) ); break; case BEND_PATH: - neweffect = (Effect*) new LPEBendPath(lpeobj); + neweffect = static_cast ( new LPEBendPath(lpeobj) ); break; -//here!! case SKETCH: - neweffect = (Effect*) new LPESketch(lpeobj); + neweffect = static_cast ( new LPESketch(lpeobj) ); break; case VONKOCH: - neweffect = (Effect*) new LPEVonKoch(lpeobj); + neweffect = static_cast ( new LPEVonKoch(lpeobj) ); break; case KNOT: - neweffect = (Effect*) new LPEKnot(lpeobj); + neweffect = static_cast ( new LPEKnot(lpeobj) ); break; #ifdef LPE_ENABLE_TEST_EFFECTS case SLANT: - neweffect = (Effect*) new LPESlant(lpeobj); + neweffect = static_cast ( new LPESlant(lpeobj) ); break; case DOEFFECTSTACK_TEST: - neweffect = (Effect*) new LPEdoEffectStackTest(lpeobj); + neweffect = static_cast ( new LPEdoEffectStackTest(lpeobj) ); break; #endif case GEARS: - neweffect = (Effect*) new LPEGears(lpeobj); + neweffect = static_cast ( new LPEGears(lpeobj) ); break; case CURVE_STITCH: - neweffect = (Effect*) new LPECurveStitch(lpeobj); + neweffect = static_cast ( new LPECurveStitch(lpeobj) ); break; case CIRCLE_WITH_RADIUS: - neweffect = (Effect*) new LPECircleWithRadius(lpeobj); + neweffect = static_cast ( new LPECircleWithRadius(lpeobj) ); break; case PERSPECTIVE_PATH: - neweffect = (Effect*) new LPEPerspectivePath(lpeobj); + neweffect = static_cast ( new LPEPerspectivePath(lpeobj) ); break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); -- 2.30.2