diff libinterp/corefcn/dirfns.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 e39e05d90788
children fcac5dbbf9ed
line wrap: on
line diff
--- a/libinterp/corefcn/dirfns.cc	Thu Jan 21 11:24:36 2016 -0500
+++ b/libinterp/corefcn/dirfns.cc	Thu Jan 21 09:47:50 2016 -0800
@@ -158,7 +158,7 @@
 @seealso{cd, dir, ls, mkdir, rmdir}\n\
 @end deftypefn")
 {
-  return octave_value (octave_env::get_current_directory ());
+  return ovl (octave_env::get_current_directory ());
 }
 
 DEFUN (readdir, args, ,
@@ -483,7 +483,7 @@
 
   glob_match pattern (file_ops::tilde_expand (pat));
 
-  return octave_value (Cell (pattern.glob ()));
+  return ovl (Cell (pattern.glob ()));
 }
 
 /*