comparison libinterp/octave-value/ov-cell.cc @ 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 e43d83253e28
children bac0d6f07a3e
comparison
equal deleted inserted replaced
22199:af0dca907fae 22200:46b67f1569b5
1229 1229
1230 dims.chop_trailing_singletons (); 1230 dims.chop_trailing_singletons ();
1231 1231
1232 check_dimensions (dims, "cell"); 1232 check_dimensions (dims, "cell");
1233 1233
1234 return ovl (Cell (dims, Matrix ())); 1234 return ovl (Cell (dims));
1235 } 1235 }
1236 1236
1237 DEFUN (iscellstr, args, , 1237 DEFUN (iscellstr, args, ,
1238 doc: /* -*- texinfo -*- 1238 doc: /* -*- texinfo -*-
1239 @deftypefn {} {} iscellstr (@var{cell}) 1239 @deftypefn {} {} iscellstr (@var{cell})