From dde09cbd38666345f129fec4d08aa043a91d2cb1 Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Thu, 9 Nov 2006 00:19:09 +0000 Subject: [PATCH] minor cleanup --- Cantera/src/ThermoPhase.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Cantera/src/ThermoPhase.h b/Cantera/src/ThermoPhase.h index d25ca8008..87ca03566 100755 --- a/Cantera/src/ThermoPhase.h +++ b/Cantera/src/ThermoPhase.h @@ -841,13 +841,11 @@ namespace Cantera { /// Return a pointer to the XML tree containing the species /// data for this phase. const XML_Node* speciesData() { - if (m_speciesData) - return m_speciesData; - else { + if (!m_speciesData) { throw CanteraError("ThermoPhase::speciesData", "m_speciesData is NULL"); - return 0; } + return m_speciesData; }