From 5a9fbd60e6e11b4060d8ba5ab0f5745f4346a1f9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 13 Jan 2010 13:09:48 +0000 Subject: [PATCH] Added missing .get()'s --- examples/osggpx/osggpx.cpp | 10 +++++----- examples/osgoutline/osgoutline.cpp | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/osggpx/osggpx.cpp b/examples/osggpx/osggpx.cpp index 2ed009b30..ab263a776 100644 --- a/examples/osggpx/osggpx.cpp +++ b/examples/osggpx/osggpx.cpp @@ -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()); } } diff --git a/examples/osgoutline/osgoutline.cpp b/examples/osgoutline/osgoutline.cpp index c4199671a..bd7811e91 100644 --- a/examples/osgoutline/osgoutline.cpp +++ b/examples/osgoutline/osgoutline.cpp @@ -25,17 +25,17 @@ int main(int argc, char** argv) // create scene osg::ref_ptr root = new osg::Group; - root->addChild(outline); + root->addChild(outline.get()); osg::ref_ptr 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();