Mercurial > hg > octave-shane
changeset 11581:6006ca07410d
another data member initialization fix
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 05:39:43 -0500 |
parents | e306683a7e97 |
children | 21dec063e89f |
files | src/ChangeLog src/oct-obj.h |
diffstat | 2 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-01-20 John W. Eaton <jwe@octave.org> + + * oct-obj.h (octave_value_list::octave_value_list): Initialize + all data members in initialization list. From Pascal Dupuis + <Pascal.Dupuis@worldonline.be>. + 2011-01-20 John W. Eaton <jwe@octave.org> * ls-mat5.cc (read_mat5_binary_element):
--- a/src/oct-obj.h +++ b/src/oct-obj.h @@ -41,22 +41,22 @@ public: octave_value_list (void) - : data () { } + : data (), names () { } explicit octave_value_list (octave_idx_type n) - : data (dim_vector (1, n)) { } + : data (dim_vector (1, n)), names () { } octave_value_list (octave_idx_type n, const octave_value& val) - : data (dim_vector (1, n), val) { } + : data (dim_vector (1, n), val), names () { } octave_value_list (const octave_value& tc) - : data (dim_vector (1, 1), tc) { } + : data (dim_vector (1, 1), tc), names () { } octave_value_list (const Array<octave_value>& d) - : data (d.as_row ()) { } + : data (d.as_row ()), names () { } octave_value_list (const Cell& tc) - : data (tc.as_row ()) { } + : data (tc.as_row ()), names () { } octave_value_list (const octave_value_list& obj) : data (obj.data), names (obj.names) { }