diff libinterp/corefcn/load-path.cc @ 21127:df7891224709

maint: Use "return ovl (...)" in DEFUN macros. * cellfun.cc, data.cc, debug.cc, defaults.cc, det.cc, dirfns.cc, dlmread.cc, error.cc, file-io.cc, getrusage.cc, graphics.cc, help.cc, input.cc, inv.cc, kron.cc, load-path.cc, pager.cc, pinv.cc, rand.cc, strfns.cc, urlwrite.cc, chol.cc, ov-classdef.cc, ov-struct.cc: Use "return ovl (...)" in DEFUN macros, rather than "return octave_value (...)".
author Rik <rik@octave.org>
date Thu, 21 Jan 2016 09:47:50 -0800
parents 8f76684324b5
children fcac5dbbf9ed
line wrap: on
line diff
--- a/libinterp/corefcn/load-path.cc	Thu Jan 21 11:24:36 2016 -0500
+++ b/libinterp/corefcn/load-path.cc	Thu Jan 21 09:47:50 2016 -0800
@@ -2300,7 +2300,7 @@
 @seealso{path, addpath, rmpath, genpath, pathdef, savepath, pathsep}\n\
 @end deftypefn")
 {
-  return octave_value (load_path::get_command_line_path ());
+  return ovl (load_path::get_command_line_path ());
 }
 
 DEFUN (restoredefaultpath, , ,
@@ -2313,7 +2313,7 @@
 {
   load_path::initialize (true);
 
-  return octave_value (load_path::system_path ());
+  return ovl (load_path::system_path ());
 }
 
 // Return Octave's original default list of directories in which to
@@ -2327,7 +2327,7 @@
 Undocumented internal function.\n\
 @end deftypefn")
 {
-  return octave_value (load_path::system_path ());
+  return ovl (load_path::system_path ());
 }
 
 DEFUN (path, args, nargout,
@@ -2368,7 +2368,7 @@
     }
 
   if (nargout > 0)
-    return octave_value (load_path::path ());
+    return ovl (load_path::path ());
   else if (nargin == 0 && nargout == 0)
     {
       octave_stdout <<