Mercurial > octave
diff liboctave/base-qr.h @ 11505:9a308e96194e
more data member initialization fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 03:57:11 -0500 |
parents | cbc402e64d83 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/liboctave/base-qr.h Thu Jan 13 03:28:21 2011 -0500 +++ b/liboctave/base-qr.h Thu Jan 13 03:57:11 2011 -0500 @@ -42,12 +42,11 @@ typedef typename qr_type::element_type qr_elt_type; - base_qr (void) { } + base_qr (void) : q (), r () { } base_qr (const qr_type& q, const qr_type& r); - base_qr (const base_qr& a) : - q (a.q), r (a.r) { } + base_qr (const base_qr& a) : q (a.q), r (a.r) { } base_qr& operator = (const base_qr& a) { @@ -59,6 +58,8 @@ return *this; } + virtual ~base_qr (void) { } + qr_type Q (void) const { return q; } qr_type R (void) const { return r; } @@ -69,7 +70,8 @@ protected: - qr_type q, r; + qr_type q; + qr_type r; }; #ifndef HAVE_QRUPDATE