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:
parent
78327505c8
commit
7df61e97a7
2 changed files with 4 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue