Mercurial > hg > octave-lyh
changeset 11504:81ff63e43f54
really make destuctors virtual in ODE/DAE base classes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 13 Jan 2011 03:28:21 -0500 |
parents | b3f511c48b14 |
children | 9a308e96194e |
files | liboctave/ChangeLog liboctave/DAE.h liboctave/DAEFunc.h liboctave/DAERT.h liboctave/DAERTFunc.h liboctave/ODE.h liboctave/ODEFunc.h liboctave/ODESFunc.h |
diffstat | 8 files changed, 17 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,13 @@ +2011-01-13 John W. Eaton <jwe@octave.org> + + * DAE.h (DAE::~DAE): Now virtual. + * DAERT.h (DAERT::~DAERT): Likewise. + * ODE.h (ODE::~ODE): Likewise. + * DAEFunc.h (DAEFunc::~DAEFunc): Likewise. + * DAERTFunc.h (DAEFunc::~DAEFunc): Likewise. + * ODEFunc.h (ODE::~ODE): Likewise. + * ODESFunc.h (ODESFunc::~ODESFunc): Likewise. + 2011-01-13 John W. Eaton <jwe@octave.org> * idx-vector.h (idx_vector_rep::idx_vector_rep, @@ -12,14 +22,6 @@ 2011-01-13 John W. Eaton <jwe@octave.org> - * DAE.h (DAE::~DAE): Now virtual. - * DAERT.h (DAERT::~DAERT): Likewise. - * ODE.h (ODE::~ODE): Likewise. - * DAEFunc.h (DAEFunc::~DAEFunc): Likewise. - * DAERTFunc.h (DAEFunc::~DAEFunc): Likewise. - * ODEFunc.h (ODE::~ODE): Likewise. - * ODESFunc.h (ODESFunc::~ODESFunc): Likewise. - * LSODE.h (class LSODE): Delete pointer data members. (LSODE::LSODE): Initialize all data members in initialization lists. * LSODE.cc (LSODE::integrate): Extract pointers to data from
--- a/liboctave/DAE.h +++ b/liboctave/DAE.h @@ -56,7 +56,7 @@ return *this; } - ~DAE (void) { } + virtual ~DAE (void) { } }; #endif
--- a/liboctave/DAEFunc.h +++ b/liboctave/DAEFunc.h @@ -67,7 +67,7 @@ return *this; } - ~DAEFunc (void) { } + virtual ~DAEFunc (void) { } DAERHSFunc function (void) const { return fun; }
--- a/liboctave/DAERT.h +++ b/liboctave/DAERT.h @@ -56,7 +56,7 @@ return *this; } - ~DAERT (void) { } + virtual ~DAERT (void) { } void initialize (const ColumnVector& xx, const ColumnVector& xxdot, double tt)
--- a/liboctave/DAERTFunc.h +++ b/liboctave/DAERTFunc.h @@ -61,7 +61,7 @@ return *this; } - ~DAERTFunc (void) { } + virtual ~DAERTFunc (void) { } DAERTConstrFunc constraint_function (void) const { return constr; }
--- a/liboctave/ODE.h +++ b/liboctave/ODE.h @@ -51,7 +51,7 @@ return *this; } - ~ODE (void) { } + virtual ~ODE (void) { } // Derived classes must provide functions to actually do the // integration.