Added missing .get()'s

This commit is contained in:
Robert Osfield 2010-01-13 13:09:48 +00:00
parent 3491e29bb0
commit 5a9fbd60e6
2 changed files with 8 additions and 8 deletions

View File

@ -237,7 +237,7 @@ Track* computeSmoothedTrack(Track* track)
itr != track->getTrackSegments().end();
++itr)
{
new_track->addTrackSegment(computeSmoothedTrackSegment(*itr));
new_track->addTrackSegment(computeSmoothedTrackSegment(itr->get()));
}
return new_track.release();
@ -323,28 +323,28 @@ int main(int argv, char **argc)
itr != track->getTrackSegments().end();
++itr)
{
*itr = computeSmoothedTrackSegment(*itr);
*itr = computeSmoothedTrackSegment(itr->get());
}
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
itr != track->getTrackSegments().end();
++itr)
{
*itr = computeSmoothedTrackSegment(*itr);
*itr = computeSmoothedTrackSegment(itr->get());
}
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
itr != track->getTrackSegments().end();
++itr)
{
*itr = computeSmoothedTrackSegment(*itr);
*itr = computeSmoothedTrackSegment(itr->get());
}
for(Track::TrackSegments::iterator itr = track->getTrackSegments().begin();
itr != track->getTrackSegments().end();
++itr)
{
*itr = computeSmoothedTrackSegment(*itr);
*itr = computeSmoothedTrackSegment(itr->get());
}
}

View File

@ -25,17 +25,17 @@ int main(int argc, char** argv)
// create scene
osg::ref_ptr<osg::Group> root = new osg::Group;
root->addChild(outline);
root->addChild(outline.get());
osg::ref_ptr<osg::Node> model0 = osgDB::readNodeFile(arguments.argc() > 1 ? arguments[1] : "al.obj");
outline->addChild(model0);
outline->addChild(model0.get());
// must have stencil buffer...
osg::DisplaySettings::instance()->setMinimumNumStencilBits(1);
// construct the viewer
osgViewer::Viewer viewer;
viewer.setSceneData(root);
viewer.setSceneData(root.get());
// must clear stencil buffer...
unsigned int clearMask = viewer.getCamera()->getClearMask();