diff liboctave/array/fCNDArray.cc @ 21169:40051830f89b

maint: Replace more instances of goto in liboctave with other constructs. *dMatrix.cc: (operator >>): Replace "goto done;" with "return is;". *dNDArray.cc: (operator >>): Replace "goto done;" with "return is;". *fCMatrix.cc: (operator >>): Replace "goto done;" with "return is;". *fCNDArray.cc: (operator >>): Replace "goto done;" with "return is;". *fMatrix.cc: (operator >>): Replace "goto done;" with "return is;". *fNDArray.cc: (operator >>): Replace "goto done;" with "return is;". *intNDArray.cc: (operator >>): Replace "goto done;" with "return is;".
author Rik <rik@octave.org>
date Mon, 01 Feb 2016 13:33:13 -0800
parents 7cac4e7458f2
children f7121e111991
line wrap: on
line diff
--- a/liboctave/array/fCNDArray.cc	Mon Feb 01 13:29:21 2016 -0800
+++ b/liboctave/array/fCNDArray.cc	Mon Feb 01 13:33:13 2016 -0800
@@ -878,12 +878,10 @@
           if (is)
             a.elem (i) = tmp;
           else
-            goto done;
+            return is;
         }
     }
 
-done:
-
   return is;
 }