Made strings with defaults pass by value
This commit is contained in:
parent
12647daa8c
commit
4951f9f028
2 changed files with 4 additions and 4 deletions
|
|
@ -78,8 +78,8 @@ namespace ctml {
|
|||
* @param typeString String type. This is an optional parameter. The default
|
||||
* is to have an empty string.
|
||||
*/
|
||||
void addInteger(XML_Node& node, const string &title, const int val,
|
||||
const std::string &units, const std::string &type) {
|
||||
void addInteger(XML_Node& node, const std::string &title, const int val,
|
||||
const std::string units, const std::string type) {
|
||||
XML_Node& f = node.addChild("integer",val);
|
||||
f.addAttribute("title",title);
|
||||
if (type != "") f.addAttribute("type",type);
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ namespace ctml {
|
|||
* typeString should be codified as to its usage.
|
||||
*/
|
||||
void addInteger(Cantera::XML_Node& node, const std::string &titleString,
|
||||
const int value, const std::string &unitsString="",
|
||||
const std::string &typeString="");
|
||||
const int value, const std::string unitsString="",
|
||||
const std::string typeString="");
|
||||
|
||||
void addFloat(Cantera::XML_Node& node,
|
||||
std::string title,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue