From 4ca0bedecd9cf04f22ac48f934dc30c98719c2fc Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 5 Dec 2014 23:33:17 +0000 Subject: [PATCH] Remove unnecessary use of const_cast --- src/thermo/Mu0Poly.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/thermo/Mu0Poly.cpp b/src/thermo/Mu0Poly.cpp index 4f8a84cc0..6c1f32997 100644 --- a/src/thermo/Mu0Poly.cpp +++ b/src/thermo/Mu0Poly.cpp @@ -138,8 +138,7 @@ Mu0Poly* newMu0ThermoFromXML(const std::string& speciesName, } vector_fp cValues(numPoints); - const XML_Node* valNode_ptr = - getByTitle(const_cast(Mu0Node), "Mu0Values"); + const XML_Node* valNode_ptr = getByTitle(Mu0Node, "Mu0Values"); if (!valNode_ptr) { throw CanteraError("installMu0ThermoFromXML", "missing required while processing " @@ -163,8 +162,7 @@ Mu0Poly* newMu0ThermoFromXML(const std::string& speciesName, } vector_fp cTemperatures(numPoints); - const XML_Node* tempNode_ptr = - getByTitle(const_cast(Mu0Node), "Mu0Temperatures"); + const XML_Node* tempNode_ptr = getByTitle(Mu0Node, "Mu0Temperatures"); if (!tempNode_ptr) { throw CanteraError("installMu0ThermoFromXML", "missing required while processing + "