Mercurial > octave
diff src/pt-idx.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | fd0a3ac60b0e |
children | c93b953f7d54 |
line wrap: on
line diff
--- a/src/pt-idx.cc Thu Jan 20 17:21:27 2011 -0500 +++ b/src/pt-idx.cc Thu Jan 20 17:24:59 2011 -0500 @@ -127,7 +127,7 @@ if (elt && elt->has_magic_end ()) return true; } - + return false; } @@ -361,7 +361,7 @@ tmp = tmp_list.length () ? tmp_list(0) : octave_value (); tmpi = i; idx.clear (); - + if (tmp.is_cs_list ()) gripe_indexed_cs_list (); @@ -498,7 +498,7 @@ else tmp = Cell (); } - else if (tmp.is_zero_by_zero () + else if (tmp.is_zero_by_zero () && (tmp.is_matrix_type () || tmp.is_string ())) { tmp = Cell (); @@ -521,7 +521,7 @@ if (error_state) break; - bool autoconv = (tmp.is_zero_by_zero () + bool autoconv = (tmp.is_zero_by_zero () && (tmp.is_matrix_type () || tmp.is_string () || tmp.is_cell ())); @@ -638,7 +638,7 @@ } new_idx_expr->args = new_args; - + new_idx_expr->type = type; new_idx_expr->arg_nm = arg_nm; @@ -657,7 +657,7 @@ new_idx_expr->dyn_field = new_dyn_field; new_idx_expr->copy_base (*this); - + return new_idx_expr; }