From 7df61e97a7b9b515b0a2a44152f2841c6dfd1865 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 3 Mar 2006 21:11:52 +0000 Subject: [PATCH] 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. --- Cantera/src/PureFluidPhase.cpp | 4 ++-- Cantera/src/PureFluidPhase.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cantera/src/PureFluidPhase.cpp b/Cantera/src/PureFluidPhase.cpp index b020e0d6c..d2faa918a 100644 --- a/Cantera/src/PureFluidPhase.cpp +++ b/Cantera/src/PureFluidPhase.cpp @@ -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(); } diff --git a/Cantera/src/PureFluidPhase.h b/Cantera/src/PureFluidPhase.h index ee560a052..e10efbfb1 100644 --- a/Cantera/src/PureFluidPhase.h +++ b/Cantera/src/PureFluidPhase.h @@ -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();