Added more constructor inits
This commit is contained in:
parent
db3de591af
commit
74b1c3c0a1
2 changed files with 8 additions and 3 deletions
|
|
@ -363,7 +363,9 @@ namespace ctml {
|
|||
const std::string typeString) {
|
||||
XML_Node& f = node.addChild("string", valueString);
|
||||
f.addAttribute("title", titleString);
|
||||
if (typeString != "") f.addAttribute("type", typeString);
|
||||
if (typeString != "") {
|
||||
f.addAttribute("type", typeString);
|
||||
}
|
||||
}
|
||||
|
||||
XML_Node* getByTitle(const Cantera::XML_Node& node, const std::string &title) {
|
||||
|
|
@ -633,6 +635,7 @@ namespace ctml {
|
|||
return getFloatCurrent(node, type);
|
||||
}
|
||||
|
||||
|
||||
doublereal getFloatCurrent(const Cantera::XML_Node& node,
|
||||
const std::string type) {
|
||||
doublereal x, x0, x1, fctr = 1.0;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,8 @@ namespace Cantera {
|
|||
* @param line Number number where the error occurred.
|
||||
*/
|
||||
XML_Error(int line=0) :
|
||||
m_line(line)
|
||||
m_line(line),
|
||||
m_msg(0)
|
||||
{
|
||||
m_msg = "Error in XML file";
|
||||
if (line > 0) {
|
||||
|
|
@ -392,7 +393,8 @@ namespace Cantera {
|
|||
////////////////////////// XML_Node /////////////////////////////////
|
||||
|
||||
XML_Node::XML_Node(const char * cnm)
|
||||
: m_value(""),
|
||||
: m_name(""),
|
||||
m_value(""),
|
||||
m_parent(0),
|
||||
m_locked(false),
|
||||
m_nchildren(0),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue