Try it again.

This commit is contained in:
JoelKatz
2012-12-17 11:48:22 -08:00
parent 9ed645bd22
commit e9f9406cf9

View File

@@ -81,8 +81,8 @@ bool ParameterNode::addNode(const std::string& name, Parameter::ref node)
Json::Value ParameterNode::getValue(int i) const
{
Json::Value v(Json::objectValue);
typedef std::pair<const std::string &, Parameter::ref> string_ref_pair;
BOOST_FOREACH(string_ref_pair it, mChildren)
typedef std::pair<std::string, Parameter::ref> string_ref_pair;
BOOST_FOREACH(const string_ref_pair& it, mChildren)
{
v[it.first] = it.second->getValue(i);
}
@@ -95,8 +95,8 @@ bool ParameterNode::setValue(const Json::Value& value, Json::Value& error)
error["error"] = "Cannot end on an inner node";
Json::Value nodes(Json::arrayValue);
typedef std::pair<const std::string&, Parameter::ref> string_ref_pair;
BOOST_FOREACH(string_ref_pair it, mChildren)
typedef std::pair<std::string, Parameter::ref> string_ref_pair;
BOOST_FOREACH(const string_ref_pair& it, mChildren)
{
nodes.append(it.first);
}