From 426fd3acb1581212a3ddda72b9c8b2e75122981e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 25 May 2016 13:27:35 +0100 Subject: [PATCH] Fixed shadows warnings --- src/osgPresentation/SlideShowConstructor.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/osgPresentation/SlideShowConstructor.cpp b/src/osgPresentation/SlideShowConstructor.cpp index 8eb381601..b8dd09512 100644 --- a/src/osgPresentation/SlideShowConstructor.cpp +++ b/src/osgPresentation/SlideShowConstructor.cpp @@ -1073,8 +1073,6 @@ osg::ref_ptr SlideShowConstructor::readImage(const std::string& file osg::ref_ptr image; osgDB::DirectoryContents filenames; - std::string foundFile = filename; - if (imageData.imageSequence) { // check for wild cards @@ -2800,7 +2798,7 @@ void SlideShowConstructor::addVolume(const std::string& filename, const Position osg::ref_ptr details = dynamic_cast(image->getUserData()); osg::ref_ptr matrix = details ? details->getMatrix() : dynamic_cast(image->getUserData()); - osg::ref_ptr layer = new osgVolume::ImageLayer(image.get()); + layer = new osgVolume::ImageLayer(image.get()); if (details) { layer->setTexelOffset(details->getTexelOffset());