diff libinterp/corefcn/mgorth.cc @ 20884:f1b2a2dbc0e1

2015 Code Sprint: use ovl () in C++ files. * __dsearchn__.cc, balance.cc, colloc.cc, data.cc, debug.cc, dirfns.cc, eig.cc, file-io.cc, getgrent.cc, getpwent.cc, givens.cc, help.cc, hess.cc, mgorth.cc, quad.cc: Replace assignments to retval(?) with calls to ovl().
author José Luis García Pallero <jgpallero@gmail.com>
date Sun, 13 Dec 2015 07:59:40 -0800
parents 1142cf6abc0d
children 03e4ddd49396
line wrap: on
line diff
--- a/libinterp/corefcn/mgorth.cc	Sat Dec 12 21:34:06 2015 -0500
+++ b/libinterp/corefcn/mgorth.cc	Sun Dec 13 07:59:40 2015 -0800
@@ -98,8 +98,7 @@
           FloatComplexMatrix V = arg_v.float_complex_matrix_value ();
           FloatComplexRowVector h;
           do_mgorth (x, V, h);
-          retval(1) = h;
-          retval(0) = x;
+          retval = ovl (x, h);
         }
       else
         {
@@ -107,8 +106,7 @@
           FloatMatrix V = arg_v.float_matrix_value ();
           FloatRowVector h;
           do_mgorth (x, V, h);
-          retval(1) = h;
-          retval(0) = x;
+          retval = ovl (x, h);
         }
     }
   else
@@ -119,8 +117,7 @@
           ComplexMatrix V = arg_v.complex_matrix_value ();
           ComplexRowVector h;
           do_mgorth (x, V, h);
-          retval(1) = h;
-          retval(0) = x;
+          retval = ovl (x, h);
         }
       else
         {
@@ -128,8 +125,7 @@
           Matrix V = arg_v.matrix_value ();
           RowVector h;
           do_mgorth (x, V, h);
-          retval(1) = h;
-          retval(0) = x;
+          retval = ovl (x, h);
         }
     }