Mercurial > hg > octave-lyh
diff liboctave/CDiagMatrix.cc @ 533:883197c5ad75
[project @ 1994-07-20 20:02:51 by jwe]
author | jwe |
---|---|
date | Wed, 20 Jul 1994 20:02:51 +0000 |
parents | 38cb88095913 |
children | 714fd17fca28 |
line wrap: on
line diff
--- a/liboctave/CDiagMatrix.cc +++ b/liboctave/CDiagMatrix.cc @@ -82,7 +82,7 @@ } int new_len = r < c ? r : c; - Complex *new_data = (Complex *) NULL; + Complex *new_data = 0; if (new_len > 0) { new_data = new Complex [new_len]; @@ -113,7 +113,7 @@ } int new_len = r < c ? r : c; - Complex *new_data = (Complex *) NULL; + Complex *new_data = 0; if (new_len > 0) { new_data = new Complex [new_len]; @@ -147,7 +147,7 @@ } int new_len = r < c ? r : c; - Complex *new_data = (Complex *) NULL; + Complex *new_data = 0; if (new_len > 0) { new_data = new Complex [new_len]; @@ -448,7 +448,7 @@ ComplexRowVector ComplexDiagMatrix::row (char *s) const { - if (s == (char *) NULL) + if (! s) { (*current_liboctave_error_handler) ("invalid row selection"); return ComplexRowVector (); @@ -487,7 +487,7 @@ ComplexColumnVector ComplexDiagMatrix::column (char *s) const { - if (s == (char *) NULL) + if (! s) { (*current_liboctave_error_handler) ("invalid column selection"); return ColumnVector ();