Skip to content

Commit

Permalink
need add() instead of put() to the tree
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Oct 18, 2011
1 parent 3b92585 commit 2234b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PipelineWriter.cpp
Expand Up @@ -93,7 +93,7 @@ void PipelineWriter::write_option_ptree(boost::property_tree::ptree& tree, const
const std::string& name = optionTree.get_child("Name").get_value<std::string>();
const std::string& value = optionTree.get_child("Value").get_value<std::string>();

boost::property_tree::ptree& subtree = tree.put("Option", value);
boost::property_tree::ptree& subtree = tree.add("Option", value);
subtree.put("<xmlattr>.name", name);

++iter;
Expand Down

0 comments on commit 2234b30

Please sign in to comment.