Fixed shadows warnigns

This commit is contained in:
Robert Osfield
2016-05-25 17:34:59 +01:00
parent 259b70156f
commit 29d4a02ee7
3 changed files with 8 additions and 8 deletions

View File

@@ -59,8 +59,8 @@ void ConvexPlanarOccluder::read(DataInputStream* in){
// Read ConvexPlanarOccluder's properties
// Read planar polygon occluder.
osg::ConvexPlanarPolygon* cpp = &getOccluder();
((ive::ConvexPlanarPolygon*)(cpp))->read(in);
osg::ConvexPlanarPolygon* occluder = &getOccluder();
((ive::ConvexPlanarPolygon*)(occluder))->read(in);
// Read hole list.
int size = in->readInt();

View File

@@ -59,9 +59,9 @@ void Image::write(DataOutputStream* out)
out->writeInt(getModifiedCount());
// Write mipmapdata vector
int size = _mipmapData.size();
out->writeInt(size);
for(int i=0;i<size;i++)
int mipmapsize = _mipmapData.size();
out->writeInt(mipmapsize);
for(int i=0;i<mipmapsize;i++)
out->writeInt(_mipmapData[i]);
// Write image data if any

View File

@@ -155,10 +155,10 @@ void ProxyNode::read(DataInputStream* in)
// Read ProxyNode's identification.
id = in->readInt();
// If the osg class is inherited by any other class we should also read this from file.
osg::Node* node = dynamic_cast<osg::Node*>(this);
if(node)
osg::Node* nodePtr = dynamic_cast<osg::Node*>(this);
if(nodePtr)
{
((ive::Node*)(node))->read(in);
((ive::Node*)(nodePtr))->read(in);
}
else
in_THROW_EXCEPTION("ProxyNode::read(): Could not cast this osg::ProxyNode to an osg::Node.");