From 27e16e5bf1517f7c8519cd7473f7211b5fc734ce Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 6 May 2014 14:39:05 +0000 Subject: [PATCH] Fix signature of SingleSpeciesTP::setMassFractions and setMoleFractions This eliminates warnings generated by Visual Studio about the mismatch in constness between the base and derived class functions. --- include/cantera/thermo/SingleSpeciesTP.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cantera/thermo/SingleSpeciesTP.h b/include/cantera/thermo/SingleSpeciesTP.h index d05b9ee1b..9bd49d912 100644 --- a/include/cantera/thermo/SingleSpeciesTP.h +++ b/include/cantera/thermo/SingleSpeciesTP.h @@ -402,10 +402,10 @@ public: */ //! Mass fractions are fixed, with Y[0] = 1.0. - void setMassFractions(const doublereal* y) {}; + void setMassFractions(const doublereal* const y) {}; //! Mole fractions are fixed, with x[0] = 1.0. - void setMoleFractions(const doublereal* x) {}; + void setMoleFractions(const doublereal* const x) {}; //! Set the internally stored specific enthalpy (J/kg) and pressure (Pa) of the phase. /*!