mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Maybe fix the build for Jeff.
This commit is contained in:
@@ -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<std::string, Parameter::ref> string_ref_pair;
|
||||
BOOST_FOREACH(const string_ref_pair& it, mChildren)
|
||||
typedef std::pair<const std::string &, Parameter::ref> string_ref_pair;
|
||||
BOOST_FOREACH(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<std::string, Parameter::ref> string_ref_pair;
|
||||
BOOST_FOREACH(const string_ref_pair& it, mChildren)
|
||||
typedef std::pair<const std::string&, Parameter::ref> string_ref_pair;
|
||||
BOOST_FOREACH(string_ref_pair it, mChildren)
|
||||
{
|
||||
nodes.append(it.first);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user