From 90c73d1e4f33475a7794905c6770f5cddfd189e6 Mon Sep 17 00:00:00 2001 From: renchao_lu <renchao.lu@gmail.com> Date: Thu, 4 Jun 2020 11:18:53 +0200 Subject: [PATCH] [CL] Constify class members. --- ChemistryLib/PhreeqcIOData/AqueousSolution.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ChemistryLib/PhreeqcIOData/AqueousSolution.h b/ChemistryLib/PhreeqcIOData/AqueousSolution.h index 000c1e76667..9366901632b 100644 --- a/ChemistryLib/PhreeqcIOData/AqueousSolution.h +++ b/ChemistryLib/PhreeqcIOData/AqueousSolution.h @@ -48,9 +48,7 @@ struct Component struct AqueousSolution { - AqueousSolution(double temperature_, - double pressure_, - double pe_, + AqueousSolution(double temperature_, double pressure_, MeshLib::PropertyVector<double>* pe_, std::vector<Component>&& components_, ChargeBalance charge_balance_, @@ -68,8 +66,8 @@ struct AqueousSolution friend std::ostream& operator<<(std::ostream& os, AqueousSolution const& aqueous_solution); - double temperature; - double pressure; + double const temperature; + double const pressure; std::unique_ptr<GlobalVector> pH; MeshLib::PropertyVector<double>* pe; std::vector<Component> components; -- GitLab