Mercurial > hg > octave-lyh
diff src/ov-cell.cc @ 6116:b64fb24bf4a0
[project @ 2006-10-27 18:04:49 by jwe]
author | jwe |
---|---|
date | Fri, 27 Oct 2006 18:04:50 +0000 |
parents | 4289ed95dde8 |
children | d26c558691cd |
line wrap: on
line diff
--- a/src/ov-cell.cc +++ b/src/ov-cell.cc @@ -1014,32 +1014,7 @@ octave_value retval; if (args.length () == 1) - { - retval = true; - - octave_value arg = args (0); - - if (arg.is_cell ()) - { - Cell c = args(0).cell_value (); - - if (! error_state) - { - for (int i = 0; i < c.length (); i++) - { - if (! c(i).is_string ()) - { - retval = false; - break; - } - } - } - else - retval = false; - } - else - retval = false; - } + retval = args(0).is_cellstr (); else print_usage ();