Removed typedef and used osg::GraphicsContext::Cameras explictly to avoid any hiding of type

This commit is contained in:
Robert Osfield
2018-03-22 09:04:47 +00:00
parent d18f61688d
commit ffb3ed8ef7

View File

@@ -1093,9 +1093,8 @@ void CompositeViewer::eventTraversal()
osg::GraphicsContext* gc = event->getGraphicsContext();
if (gc)
{
typedef osg::GraphicsContext::Cameras Cameras;
Cameras& cameras = gc->getCameras();
for(Cameras::iterator citr = cameras.begin();
osg::GraphicsContext::Cameras& cameras = gc->getCameras();
for(osg::GraphicsContext::Cameras::iterator citr = cameras.begin();
citr != cameras.end();
++citr)
{