changeset 20874:d112e04d1271

2015 Code Sprint: symtab.cc: use ovl ().
author Rik <rik@octave.org>
date Sat, 12 Dec 2015 10:33:22 -0800
parents 9fbacc123a91
children a778c2427f2a
files libinterp/corefcn/symtab.cc
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/symtab.cc	Sat Dec 12 10:28:07 2015 -0800
+++ b/libinterp/corefcn/symtab.cc	Sat Dec 12 10:33:22 2015 -0800
@@ -1731,12 +1731,7 @@
 @seealso{__dump_symtab_info__}\n\
 @end deftypefn")
 {
-  octave_value_list retval;
-
-  retval(1) = symbol_table::current_context ();
-  retval(0) = symbol_table::current_scope ();
-
-  return retval;
+  return ovl (symbol_table::current_scope (), symbol_table::current_context ());
 }
 
 DEFUN (__dump_symtab_info__, args, ,