[osg-users] warning C6246 UpdateVisitor
IceSharK
iceshark at gmail.com
Sun Mar 2 19:35:44 PST 2008
Hi~
warning *C6246*: Local declaration of <variable> hides declaration of same
name in outer scope. Additional Information: See previous declaration at
<location>.
This warning indicates that two declarations have the same name at local
scope. The name at outer scope is hidden by the declaration at the inner
scope. Any intended use of the outer scope declaration will result in the
use of local declaration.
OSG 2.3.4
UpdateVisitor
#91
osg::NodeCallback* *callback* = geode.getUpdateCallback();
if (callback) (*callback)(&geode,this);
// Call the app callbacks on the drawables.
for(unsigned int i=0;i<geode.getNumDrawables();++i)
{
osg::Drawable::UpdateCallback* *callback* =
geode.getDrawable(i)->getUpdateCallback();
if (callback) callback->update(this,geode.getDrawable(i));
handle_callbacks(geode.getDrawable(i)->getStateSet());
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080303/31e47cc1/attachment.htm
More information about the osg-users
mailing list