minor cleanup
This commit is contained in:
parent
b88572545c
commit
dde09cbd38
1 changed files with 2 additions and 4 deletions
|
|
@ -841,13 +841,11 @@ namespace Cantera {
|
||||||
/// Return a pointer to the XML tree containing the species
|
/// Return a pointer to the XML tree containing the species
|
||||||
/// data for this phase.
|
/// data for this phase.
|
||||||
const XML_Node* speciesData() {
|
const XML_Node* speciesData() {
|
||||||
if (m_speciesData)
|
if (!m_speciesData) {
|
||||||
return m_speciesData;
|
|
||||||
else {
|
|
||||||
throw CanteraError("ThermoPhase::speciesData",
|
throw CanteraError("ThermoPhase::speciesData",
|
||||||
"m_speciesData is NULL");
|
"m_speciesData is NULL");
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
return m_speciesData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue