From 0d0bdc9197855391289aad7a9256a4287015960d Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 5 Sep 2007 14:29:02 +0000 Subject: [PATCH] Tidying. [fixed a bug that was introduced in r602] git-svn-id: http://svn.voria.com/code@604 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp | 2 +- synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp | 4 +++- synfig-core/trunk/src/synfig/valuenode_stripes.cpp | 3 ++- synfig-core/trunk/src/synfig/valuenode_subtract.cpp | 3 ++- synfig-core/trunk/src/synfig/valuenode_timedswap.cpp | 3 ++- synfig-core/trunk/src/synfig/valuenode_twotone.cpp | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp b/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp index 187070a..30b5c68 100644 --- a/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_gradientrotate.cpp @@ -183,8 +183,8 @@ ValueNode_GradientRotate::link_name(int i)const return "gradient"; case 1: return "offset"; + default: return String(); } - return String(); } int diff --git a/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp b/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp index 1cdf107..bfa02c4 100644 --- a/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp @@ -210,8 +210,10 @@ ValueNode_RadialComposite::link_local_name(int i)const break; default: - return etl::strprintf(_("C%d"),i+1); + break; } + + return etl::strprintf(_("C%d"),i+1); } diff --git a/synfig-core/trunk/src/synfig/valuenode_stripes.cpp b/synfig-core/trunk/src/synfig/valuenode_stripes.cpp index a1a34f8..77a337f 100644 --- a/synfig-core/trunk/src/synfig/valuenode_stripes.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_stripes.cpp @@ -240,8 +240,9 @@ ValueNode_Stripes::link_name(int i)const return "stripes"; case 3: return "width"; + default: + return String(); } - return String(); } int diff --git a/synfig-core/trunk/src/synfig/valuenode_subtract.cpp b/synfig-core/trunk/src/synfig/valuenode_subtract.cpp index 3dbebbe..b561a61 100644 --- a/synfig-core/trunk/src/synfig/valuenode_subtract.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_subtract.cpp @@ -278,8 +278,9 @@ ValueNode_Subtract::link_name(int i)const return "rhs"; case 2: return "scalar"; + default: + return String(); } - return String(); } int diff --git a/synfig-core/trunk/src/synfig/valuenode_timedswap.cpp b/synfig-core/trunk/src/synfig/valuenode_timedswap.cpp index 80df6b4..4724d04 100644 --- a/synfig-core/trunk/src/synfig/valuenode_timedswap.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_timedswap.cpp @@ -309,8 +309,9 @@ ValueNode_TimedSwap::link_name(int i)const return "time"; case 3: return "length"; + default: + return String(); } - return 0; } int diff --git a/synfig-core/trunk/src/synfig/valuenode_twotone.cpp b/synfig-core/trunk/src/synfig/valuenode_twotone.cpp index f50cdff..b782b6d 100644 --- a/synfig-core/trunk/src/synfig/valuenode_twotone.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_twotone.cpp @@ -175,8 +175,9 @@ ValueNode_TwoTone::link_name(int i)const return "color1"; case 1: return "color2"; + default: + return String(); } - return String(); } int -- 2.7.4