Mercurial > hg > octave-lyh
diff liboctave/idx-vector.cc @ 11503:b3f511c48b14
idx-vector.h, idx-vector.cc: data member initialization and constructor fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 03:27:29 -0500 |
parents | c49911ab7ac7 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/liboctave/idx-vector.cc +++ b/liboctave/idx-vector.cc @@ -264,6 +264,7 @@ template <class T> idx_vector::idx_scalar_rep::idx_scalar_rep (T x) + : data (0) { octave_idx_type dummy = 0; @@ -340,7 +341,7 @@ idx_vector::idx_vector_rep::idx_vector_rep (const Array<octave_idx_type>& inda) : data (inda.data ()), len (inda.numel ()), ext (0), - aowner (new Array<octave_idx_type> (inda)), orig_dims (inda.dims ()) + aowner (new Array<octave_idx_type> (inda)), orig_dims (inda.dims ()) { if (len != 0) {