Changed the defn of two functions who were missing const declarations.

These were const in Thermophase.h, and for proper inheritance, they
need to be the same in derived classes.
This commit is contained in:
Harry Moffat 2006-03-03 21:11:52 +00:00
parent 78327505c8
commit 7df61e97a7
2 changed files with 4 additions and 4 deletions

View file

@ -142,11 +142,11 @@ namespace Cantera {
}
doublereal PureFluidPhase::isothermalCompressibility() {
doublereal PureFluidPhase::isothermalCompressibility() const {
return m_sub->isothermalCompressibility();
}
doublereal PureFluidPhase::thermalExpansionCoeff() {
doublereal PureFluidPhase::thermalExpansionCoeff() const {
return m_sub->thermalExpansionCoeff();
}

View file

@ -53,8 +53,8 @@ namespace Cantera {
mu[0] = gibbs_mole();
}
virtual doublereal isothermalCompressibility();
virtual doublereal thermalExpansionCoeff();
virtual doublereal isothermalCompressibility() const;
virtual doublereal thermalExpansionCoeff() const;
tpx::Substance& TPX_Substance();