changeset 22200:46b67f1569b5

FCell: avoid repeating default value for a newly created Cell. * libinterp/octave-value/ov-cell.cc (FCell): default element values for a new Cell already is an 'octave_value (Matrix ())' so don't repeat that.
author Carnë Draug <carandraug@octave.org>
date Wed, 03 Aug 2016 04:55:05 +0100
parents af0dca907fae
children 2dcabdf6d088
files libinterp/octave-value/ov-cell.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-cell.cc	Tue Aug 02 03:40:02 2016 -0400
+++ b/libinterp/octave-value/ov-cell.cc	Wed Aug 03 04:55:05 2016 +0100
@@ -1231,7 +1231,7 @@
 
   check_dimensions (dims, "cell");
 
-  return ovl (Cell (dims, Matrix ()));
+  return ovl (Cell (dims));
 }
 
 DEFUN (iscellstr, args, ,