Mercurial > hg > octave-lyh
diff liboctave/CMatrix.cc @ 533:883197c5ad75
[project @ 1994-07-20 20:02:51 by jwe]
author | jwe |
---|---|
date | Wed, 20 Jul 1994 20:02:51 +0000 |
parents | 2ca256b77602 |
children | 01da6806197b |
line wrap: on
line diff
--- a/liboctave/CMatrix.cc +++ b/liboctave/CMatrix.cc @@ -127,7 +127,7 @@ } int new_len = r * c; - Complex* new_data = (Complex *) NULL; + Complex* new_data = 0; if (new_len > 0) { new_data = new Complex [new_len]; @@ -160,7 +160,7 @@ } int new_len = r * c; - Complex *new_data = (Complex *) NULL; + Complex *new_data = 0; if (new_len > 0) { new_data = new Complex [new_len]; @@ -198,7 +198,7 @@ } int new_len = r * c; - Complex *new_data = (Complex *) NULL; + Complex *new_data = 0; if (new_len > 0) { new_data = new Complex [new_len]; @@ -845,7 +845,7 @@ ComplexRowVector ComplexMatrix::row (char *s) const { - if (s == (char *) NULL) + if (! s) { (*current_liboctave_error_handler) ("invalid row selection"); return ComplexRowVector (); @@ -883,7 +883,7 @@ ComplexColumnVector ComplexMatrix::column (char *s) const { - if (s == (char *) NULL) + if (! s) { (*current_liboctave_error_handler) ("invalid column selection"); return ComplexColumnVector (); @@ -1703,7 +1703,7 @@ return ComplexMatrix (nr, nc, 0.0); Complex *c = new Complex [nr*a_nc]; - Complex *ctmp = (Complex *) NULL; + Complex *ctmp = 0; for (int j = 0; j < a.length (); j++) { @@ -1796,7 +1796,7 @@ return ComplexMatrix (nr, nc, 0.0); Complex *c = new Complex [nr*a_nc]; - Complex *ctmp = (Complex *) NULL; + Complex *ctmp = 0; for (int j = 0; j < a.length (); j++) {