changeset 21125:8f76684324b5

maint: change "return octave_value ()" to "return ovl ()". * graphics.cc (Freset): change "return octave_value ()" to "return ovl ()". * load-path.cc (Fpath): change "return octave_value ()" to "return ovl ()". * audiodevinfo.cc (various functions): change "return octave_value ()" to "return ovl ()". Move return statement with #endif. * ov-class.cc (Fsuperiorto): change "return octave_value ()" to "return ovl ()".
author Rik <rik@octave.org>
date Wed, 20 Jan 2016 22:19:02 -0800
parents 95f8c8cdbffe
children ba0a4b4f021d
files libinterp/corefcn/graphics.cc libinterp/corefcn/load-path.cc libinterp/dldfcn/audiodevinfo.cc libinterp/octave-value/ov-class.cc
diffstat 4 files changed, 19 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Wed Jan 20 21:54:36 2016 -0800
+++ b/libinterp/corefcn/graphics.cc	Wed Jan 20 22:19:02 2016 -0800
@@ -9613,7 +9613,7 @@
 
   Fdrawnow ();
 
-  return octave_value ();
+  return ovl ();
 }
 
 /*
--- a/libinterp/corefcn/load-path.cc	Wed Jan 20 21:54:36 2016 -0800
+++ b/libinterp/corefcn/load-path.cc	Wed Jan 20 22:19:02 2016 -0800
@@ -2381,7 +2381,7 @@
       octave_stdout << "\n";
     }
 
-  return octave_value ();
+  return ovl ();
 }
 
 DEFUN (addpath, args, nargout,
--- a/libinterp/dldfcn/audiodevinfo.cc	Wed Jan 20 21:54:36 2016 -0800
+++ b/libinterp/dldfcn/audiodevinfo.cc	Wed Jan 20 22:19:02 2016 -0800
@@ -2037,8 +2037,8 @@
                         "audio playback and recording through PortAudio");
 #else
   get_recorder (args(0))->pause ();
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__recorder_recordblocking__, args, ,
@@ -2053,8 +2053,8 @@
 #else
   float seconds = args(1).float_value ();
   get_recorder (args(0))->recordblocking (seconds);
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__recorder_record__, args, ,
@@ -2074,8 +2074,8 @@
     recorder->set_end_sample (args(1).int_value () * recorder->get_fs ());
 
   recorder->record ();
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__recorder_resume__, args, ,
@@ -2090,8 +2090,8 @@
 #else
   if (args.length () == 1)
     get_recorder (args(0))->resume ();
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__recorder_set_fs__, args, ,
@@ -2106,8 +2106,8 @@
 #else
   if (args.length () == 2)
     get_recorder (args(0))->set_fs (args(1).int_value ());
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__recorder_set_tag__, args, ,
@@ -2122,8 +2122,8 @@
 #else
   if (args.length () == 2)
     get_recorder (args(0))->set_tag (args(1).char_matrix_value ());
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__recorder_set_userdata__, args, ,
@@ -2138,8 +2138,8 @@
 #else
   if (args.length () == 2)
     get_recorder (args(0))->set_userdata (args(1));
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__recorder_stop__, args, ,
@@ -2154,8 +2154,8 @@
 #else
   if (args.length () == 1)
     get_recorder (args(0))->stop ();
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_audioplayer__, args, ,
@@ -2393,8 +2393,8 @@
 #else
   if (args.length () == 1)
     get_player (args(0))->pause ();
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_playblocking__, args, ,
@@ -2445,9 +2445,8 @@
       player->playblocking ();
     }
 
+  return ovl ();
 #endif
-
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_play__, args, ,
@@ -2498,9 +2497,8 @@
       player->play ();
     }
 
+  return ovl ();
 #endif
-
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_resume__, args, ,
@@ -2515,8 +2513,8 @@
 #else
   if (args.length () == 1)
     get_player (args(0))->resume ();
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_set_fs__, args, ,
@@ -2531,8 +2529,8 @@
 #else
   if (args.length () == 2)
     get_player (args(0))->set_fs (args(1).int_value ());
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_set_tag__, args, ,
@@ -2547,8 +2545,8 @@
 #else
   if (args.length () == 2)
     get_player (args(0))->set_tag (args(1).char_matrix_value ());
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_set_userdata__, args, ,
@@ -2563,8 +2561,8 @@
 #else
   if (args.length () == 2)
     get_player (args(0))->set_userdata (args(1));
+  return ovl ();
 #endif
-  return octave_value ();
 }
 
 DEFUN_DLD (__player_stop__, args, ,
@@ -2579,6 +2577,6 @@
 #else
   if (args.length () == 1)
     get_player (args(0))->stop ();
+  return ovl ();
 #endif
-  return octave_value ();
 }
--- a/libinterp/octave-value/ov-class.cc	Wed Jan 20 21:54:36 2016 -0800
+++ b/libinterp/octave-value/ov-class.cc	Wed Jan 20 22:19:02 2016 -0800
@@ -2016,7 +2016,7 @@
                sup_class.c_str (), inf_class.c_str ());
     }
 
-  return octave_value ();
+  return ovl ();
 }
 
 DEFUN (inferiorto, args, ,