diff --git a/Cantera/src/GeneralSpeciesThermo.cpp b/Cantera/src/GeneralSpeciesThermo.cpp index 15ba9da95..0d6bc4958 100644 --- a/Cantera/src/GeneralSpeciesThermo.cpp +++ b/Cantera/src/GeneralSpeciesThermo.cpp @@ -55,7 +55,7 @@ namespace Cantera { for (int k = 0; k < m_kk; k++) { SpeciesThermoInterpType *sp = m_sp[k]; if (sp) { - delete (sp); + delete sp; m_sp[k] = 0; } } diff --git a/Cantera/src/SpeciesThermoInterpType.h b/Cantera/src/SpeciesThermoInterpType.h index 375caca65..eff84b356 100644 --- a/Cantera/src/SpeciesThermoInterpType.h +++ b/Cantera/src/SpeciesThermoInterpType.h @@ -19,6 +19,9 @@ namespace Cantera { public: + SpeciesThermoInterpType() {}; + virtual ~SpeciesThermoInterpType() {}; + virtual SpeciesThermoInterpType * duplMyselfAsSpeciesThermoInterpType() const = 0; diff --git a/Cantera/src/thermo/SingleSpeciesTP.cpp b/Cantera/src/thermo/SingleSpeciesTP.cpp index 6c3072474..9b7d098cb 100644 --- a/Cantera/src/thermo/SingleSpeciesTP.cpp +++ b/Cantera/src/thermo/SingleSpeciesTP.cpp @@ -331,7 +331,7 @@ namespace Cantera { er[0] = m_s0_R[0]; } - /** + /** * Get the nondimensional Gibbs functions for the standard * state of the species at the current T and reference pressure * for the species. @@ -341,7 +341,6 @@ namespace Cantera { cpr[0] = m_cp0_R[0]; } - /* * ------------------ Setting the State ------------------------ */