Tidying.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 5 Sep 2007 14:29:02 +0000 (14:29 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 5 Sep 2007 14:29:02 +0000 (14:29 +0000)
[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
synfig-core/trunk/src/synfig/valuenode_radialcomposite.cpp
synfig-core/trunk/src/synfig/valuenode_stripes.cpp
synfig-core/trunk/src/synfig/valuenode_subtract.cpp
synfig-core/trunk/src/synfig/valuenode_timedswap.cpp
synfig-core/trunk/src/synfig/valuenode_twotone.cpp

index 187070a..30b5c68 100644 (file)
@@ -183,8 +183,8 @@ ValueNode_GradientRotate::link_name(int i)const
                        return "gradient";
                case 1:
                        return "offset";
+               default: return String();
        }
-       return String();
 }
 
 int
index 1cdf107..bfa02c4 100644 (file)
@@ -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);
 }
 
 
index a1a34f8..77a337f 100644 (file)
@@ -240,8 +240,9 @@ ValueNode_Stripes::link_name(int i)const
                        return "stripes";
                case 3:
                        return "width";
+               default:
+                       return String();
        }
-       return String();
 }
 
 int
index 3dbebbe..b561a61 100644 (file)
@@ -278,8 +278,9 @@ ValueNode_Subtract::link_name(int i)const
                        return "rhs";
                case 2:
                        return "scalar";
+               default:
+                       return String();
        }
-       return String();
 }
 
 int
index 80df6b4..4724d04 100644 (file)
@@ -309,8 +309,9 @@ ValueNode_TimedSwap::link_name(int i)const
                return "time";
        case 3:
                return "length";
+       default:
+               return String();
        }
-       return 0;
 }
 
 int
index f50cdff..b782b6d 100644 (file)
@@ -175,8 +175,9 @@ ValueNode_TwoTone::link_name(int i)const
                        return "color1";
                case 1:
                        return "color2";
+               default:
+                       return String();
        }
-       return String();
 }
 
 int