Fixed warnings

This commit is contained in:
Robert Osfield 2016-07-05 17:57:28 +01:00
parent 9cd52fc54e
commit ca4355974f
2 changed files with 3 additions and 3 deletions

View File

@ -298,7 +298,7 @@ JSONObject* createJSONAnimation(osgAnimation::Animation* anim, WriteVisitor* wri
return json.release(); return json.release();
} }
JSONObject* createJSONUpdateMatrixTransform(osgAnimation::UpdateMatrixTransform& acb, WriteVisitor* writer) JSONObject* createJSONUpdateMatrixTransform(osgAnimation::UpdateMatrixTransform& acb, WriteVisitor* /*writer*/)
{ {
osg::ref_ptr<JSONObject> json = new JSONObject; osg::ref_ptr<JSONObject> json = new JSONObject;
json->addUniqueID(); json->addUniqueID();

View File

@ -290,7 +290,7 @@ public:
} }
} }
void applyCallback(osg::Node& node, JSONObject* json) { void applyCallback(osg::Node& node, JSONObject* in_json) {
osg::ref_ptr<JSONArray> updateCallbacks = new JSONArray; osg::ref_ptr<JSONArray> updateCallbacks = new JSONArray;
osg::ref_ptr<osg::Callback> nc = node.getUpdateCallback(); osg::ref_ptr<osg::Callback> nc = node.getUpdateCallback();
while (nc) { while (nc) {
@ -361,7 +361,7 @@ public:
} }
if (!updateCallbacks->getArray().empty()) { if (!updateCallbacks->getArray().empty()) {
json->getMaps()["UpdateCallbacks"] = updateCallbacks; in_json->getMaps()["UpdateCallbacks"] = updateCallbacks;
} }
} }