Buglets found by static code inspection, including a whopper in divRound.

This commit is contained in:
JoelKatz
2013-04-27 00:35:16 -07:00
parent 09c37874a2
commit 46c1488484
12 changed files with 20 additions and 21 deletions

View File

@@ -39,6 +39,7 @@ bool ParameterNode::setValue(const std::string& name, const Json::Value& value,
error = Json::objectValue;
error["error"] = "Node has no children";
error["name"] = it->second->getName();
return false;
}
return n->setValue(name.substr(dot + 1), value, error);
@@ -74,7 +75,6 @@ bool ParameterNode::addNode(const std::string& name, Parameter::ref node)
if (!n)
return false;
}
return n->addNode(name.substr(dot + 1), node);
}