Added ref_ptr<> to quieten down Coverity

This commit is contained in:
Robert Osfield 2016-07-06 20:57:53 +01:00
parent c820b611ed
commit 6d85404cf0

View File

@ -644,7 +644,7 @@ JSONObject* WriteVisitor::createJSONMorphGeometry(osgAnimation::MorphGeometry* m
} }
JSONObject* jsonGeometry = createJSONGeometry(morphGeometry, parent); JSONObject* jsonGeometry = createJSONGeometry(morphGeometry, parent);
JSONArray* targetList = new JSONArray; osg::ref_ptr<JSONArray> targetList = new JSONArray;
osgAnimation::MorphGeometry::MorphTargetList mTargetList = morphGeometry->getMorphTargetList(); osgAnimation::MorphGeometry::MorphTargetList mTargetList = morphGeometry->getMorphTargetList();
typedef osgAnimation::MorphGeometry::MorphTargetList::iterator TargetIterator; typedef osgAnimation::MorphGeometry::MorphTargetList::iterator TargetIterator;